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 500fcb62..6e45a272 100644
--- a/mate-panel/panel-run-dialog.c
+++ b/mate-panel/panel-run-dialog.c
@@ -1447,10 +1447,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;