]> spindle.queued.net Git - midori/commitdiff
Don't show 'Add to Speed Dial' with no configuration
authorChristian Dywan <christian@twotoasts.de>
Sun, 24 Oct 2010 21:48:58 +0000 (23:48 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 24 Oct 2010 21:48:58 +0000 (23:48 +0200)
As it won't be saved, it's not helpful to offer it.

midori/midori-view.c
midori/sokoke.c

index bc6836a07db484f668e70e24a86ead8e6d860daa..ff69846bbbb752a067e4964f3a6d1db2ab1fcc3e 100644 (file)
@@ -2603,7 +2603,8 @@ midori_view_populate_popup (MidoriView* view,
                 gtk_action_group_get_action (actions, "BookmarkAdd"));
         gtk_menu_shell_append (menu_shell, menuitem);
 
-        if (view->speed_dial_in_new_tabs && !midori_view_is_blank (view))
+        if (view->speed_dial_in_new_tabs && !midori_view_is_blank (view)
+         && strcmp ("/", sokoke_set_config_dir (NULL)))
         {
             menuitem = sokoke_action_create_popup_menu_item (
                 gtk_action_group_get_action (actions, "AddSpeedDial"));
index 3c445337b43c08fbc5c8de244285df25880e012c..133de3c177ab2beaa65f46284a0f0d8b5ed67b73 100644 (file)
@@ -1481,6 +1481,8 @@ sokoke_register_stock_items (void)
  *
  * Retrieves and/ or sets the base configuration folder.
  *
+ * "/" means no configuration is saved.
+ *
  * Return value: the configuration folder, or %NULL
  **/
 const gchar*