[Xfce4-commits] <xfce4-panel:devel> Pressing new launcher button did not work with empty store.
Nick Schermer
noreply at xfce.org
Wed Jan 20 21:08:06 CET 2010
Updating branch refs/heads/devel
to 9e19d4d961835c5762f711852c20f068ac0b2102 (commit)
from a31273ee6b6a042db3a28c4dab7c46f222086c13 (commit)
commit 9e19d4d961835c5762f711852c20f068ac0b2102
Author: Nick Schermer <nick at xfce.org>
Date: Wed Jan 20 15:01:26 2010 +0100
Pressing new launcher button did not work with empty store.
plugins/launcher/launcher-dialog.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/plugins/launcher/launcher-dialog.c b/plugins/launcher/launcher-dialog.c
index 4908081..10e163e 100644
--- a/plugins/launcher/launcher-dialog.c
+++ b/plugins/launcher/launcher-dialog.c
@@ -592,7 +592,8 @@ launcher_dialog_item_button_clicked (GtkWidget *button,
/* get the selected item in the tree, leave if none is found */
treeview = gtk_builder_get_object (dialog->builder, "item-treeview");
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
- if (!gtk_tree_selection_get_selected (selection, &model, &iter_a))
+ if (!gtk_tree_selection_get_selected (selection, &model, &iter_a)
+ && strcmp (name, "item-new") != 0)
return;
if (strcmp (name, "item-delete") == 0)
More information about the Xfce4-commits
mailing list