diff --git a/Userland/Applications/Run/RunWindow.cpp b/Userland/Applications/Run/RunWindow.cpp index de18e987ce..3c551b0f2f 100644 --- a/Userland/Applications/Run/RunWindow.cpp +++ b/Userland/Applications/Run/RunWindow.cpp @@ -47,7 +47,8 @@ RunWindow::RunWindow() m_path_combo_box = *main_widget.find_descendant_of_type_named("path"); m_path_combo_box->set_model(m_path_history_model); - m_path_combo_box->set_selected_index(0); + if (!m_path_history.is_empty()) + m_path_combo_box->set_selected_index(0); m_ok_button = *main_widget.find_descendant_of_type_named("ok_button"); m_ok_button->on_click = [this](auto) {