diff options
author | James Westman <flyingpimonster@flyingpimonster.net> | 2019-07-02 12:51:36 -0500 |
---|---|---|
committer | Alberto Fanjul <albertofanjul@gmail.com> | 2019-07-16 03:41:09 +0200 |
commit | db35c6f1b613b98c6068c7c786376adc4ca5ae26 (patch) | |
tree | a1ef34c5793176911cf371238b7319cba1286a23 | |
parent | 58285e64e3bc346393b4986dc0aa969f15495ac0 (diff) | |
download | glade-db35c6f1b613b98c6068c7c786376adc4ca5ae26.tar.gz |
GladePopup: Clear add item when adding as toplevel
-rw-r--r-- | gladeui/glade-popup.c | 3 |
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 |