Don't show 'Add to Speed Dial' with no configuration

As it won't be saved, it's not helpful to offer it.
This commit is contained in:
Christian Dywan 2010-10-24 23:48:58 +02:00
parent cbb9189e7c
commit ba161aeeae
2 changed files with 4 additions and 1 deletions

View 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"));

View 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*