From ba161aeeae3deca5c7fb8ee9923a657bfa7fedc2 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 24 Oct 2010 23:48:58 +0200 Subject: [PATCH] Don't show 'Add to Speed Dial' with no configuration As it won't be saved, it's not helpful to offer it. --- midori/midori-view.c | 3 ++- midori/sokoke.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index bc6836a0..ff69846b 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -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")); diff --git a/midori/sokoke.c b/midori/sokoke.c index 3c445337..133de3c1 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -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* -- 2.39.5