Bail out of BookmarksImport action if no bookmarks or hidden browser
This commit is contained in:
parent
3253f1605a
commit
0af9c0cc9d
1 changed files with 3 additions and 0 deletions
|
@ -4080,6 +4080,9 @@ _action_bookmarks_import_activate (GtkAction* action,
|
||||||
guint i;
|
guint i;
|
||||||
KatzeItem* item;
|
KatzeItem* item;
|
||||||
|
|
||||||
|
if (!browser->bookmarks || !GTK_WIDGET_VISIBLE (browser))
|
||||||
|
return;
|
||||||
|
|
||||||
dialog = gtk_dialog_new_with_buttons (
|
dialog = gtk_dialog_new_with_buttons (
|
||||||
_("Import bookmarks..."), GTK_WINDOW (browser),
|
_("Import bookmarks..."), GTK_WINDOW (browser),
|
||||||
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
|
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR,
|
||||||
|
|
Loading…
Reference in a new issue