diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-23 15:59:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-23 15:59:47 +0000 |
commit | 43280a2889a77c96e7aea683e527f781a30b5b1b (patch) | |
tree | 11794e15e1d655b36e0fa6606834d9e794182365 | |
parent | a7c320630887ffbf9ae10a83226a6d9b6fa63ace (diff) | |
download | gnunet-gtk-43280a2889a77c96e7aea683e527f781a30b5b1b.tar.gz gnunet-gtk-43280a2889a77c96e7aea683e527f781a30b5b1b.zip |
-only select if we found an entry that was still present
-rw-r--r-- | src/setup/gnunet-setup-options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/setup/gnunet-setup-options.c b/src/setup/gnunet-setup-options.c index 35b5c32f..f45ed985 100644 --- a/src/setup/gnunet-setup-options.c +++ b/src/setup/gnunet-setup-options.c | |||
@@ -426,8 +426,8 @@ GNUNET_setup_treeview_key_press_event_cb (GtkTreeView * tv, GdkEventKey * event, | |||
426 | if (TRUE == editable) | 426 | if (TRUE == editable) |
427 | return FALSE; /* likely currently editing... */ | 427 | return FALSE; /* likely currently editing... */ |
428 | gtk_list_store_remove (ls, &iter); | 428 | gtk_list_store_remove (ls, &iter); |
429 | gtk_tree_model_get_iter_first (tm, &iter); | 429 | if (TRUE == gtk_tree_model_get_iter_first (tm, &iter)) |
430 | gtk_tree_selection_select_iter (sel, &iter); | 430 | gtk_tree_selection_select_iter (sel, &iter); |
431 | return FALSE; | 431 | return FALSE; |
432 | } | 432 | } |
433 | 433 | ||