summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-run-dialog.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mate-panel/panel-run-dialog.c b/mate-panel/panel-run-dialog.c
index e8962494..e00d0c51 100644
--- a/mate-panel/panel-run-dialog.c
+++ b/mate-panel/panel-run-dialog.c
@@ -1450,10 +1450,14 @@ entry_event (GtkEditable *entry,
if (event->type != GDK_KEY_PRESS)
return FALSE;
- /* if user typed something we're not using the list anymore */
+ /* if user typed something we're not using the list anymore
+ (but only if it is enabled anyway)
+ */
dialog->use_program_list = FALSE;
- selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (dialog->program_list));
- gtk_tree_selection_unselect_all (selection);
+ if (panel_profile_get_enable_program_list ()) {
+ selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (dialog->program_list));
+ gtk_tree_selection_unselect_all (selection);
+ }
if (!panel_profile_get_enable_autocompletion ())
return FALSE;