summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Westman <flyingpimonster@flyingpimonster.net>2019-07-02 12:51:36 -0500
committerAlberto Fanjul <albertofanjul@gmail.com>2019-07-16 03:41:09 +0200
commitdb35c6f1b613b98c6068c7c786376adc4ca5ae26 (patch)
treea1ef34c5793176911cf371238b7319cba1286a23
parent58285e64e3bc346393b4986dc0aa969f15495ac0 (diff)
downloadglade-db35c6f1b613b98c6068c7c786376adc4ca5ae26.tar.gz
GladePopup: Clear add item when adding as toplevel
-rw-r--r--gladeui/glade-popup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gladeui/glade-popup.c b/gladeui/glade-popup.c
index adcde18b..04f902c9 100644
--- a/gladeui/glade-popup.c
+++ b/gladeui/glade-popup.c
@@ -77,7 +77,8 @@ glade_popup_widget_add_cb (GtkMenuItem *item, RootAddData *data)
static void
glade_popup_root_add_cb (GtkMenuItem *item, RootAddData *data)
{
- glade_command_create (data->adaptor, NULL, NULL, data->project);
+ if (glade_command_create (data->adaptor, NULL, NULL, data->project))
+ glade_project_set_add_item (data->project, NULL);
}
static void