From: Christian Dywan Date: Sat, 6 Mar 2010 18:16:52 +0000 (+0100) Subject: Bail out of Export if no bookmarks or hidden X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7005abd55d8d3f54a08dda2ad2d1532e8822179;p=midori Bail out of Export if no bookmarks or hidden --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 3f877594..566b800d 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -4648,6 +4648,9 @@ _action_bookmarks_export_activate (GtkAction* action, gchar* path = NULL; GError* error; + if (!browser->bookmarks || !GTK_WIDGET_VISIBLE (browser)) + return; + file_dialog = sokoke_file_chooser_dialog_new (_("Save file as"), GTK_WINDOW (browser), GTK_FILE_CHOOSER_ACTION_SAVE); gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (file_dialog),