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:
parent
cbb9189e7c
commit
ba161aeeae
2 changed files with 4 additions and 1 deletions
|
@ -2603,7 +2603,8 @@ midori_view_populate_popup (MidoriView* view,
|
||||||
gtk_action_group_get_action (actions, "BookmarkAdd"));
|
gtk_action_group_get_action (actions, "BookmarkAdd"));
|
||||||
gtk_menu_shell_append (menu_shell, menuitem);
|
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 (
|
menuitem = sokoke_action_create_popup_menu_item (
|
||||||
gtk_action_group_get_action (actions, "AddSpeedDial"));
|
gtk_action_group_get_action (actions, "AddSpeedDial"));
|
||||||
|
|
|
@ -1481,6 +1481,8 @@ sokoke_register_stock_items (void)
|
||||||
*
|
*
|
||||||
* Retrieves and/ or sets the base configuration folder.
|
* Retrieves and/ or sets the base configuration folder.
|
||||||
*
|
*
|
||||||
|
* "/" means no configuration is saved.
|
||||||
|
*
|
||||||
* Return value: the configuration folder, or %NULL
|
* Return value: the configuration folder, or %NULL
|
||||||
**/
|
**/
|
||||||
const gchar*
|
const gchar*
|
||||||
|
|
Loading…
Reference in a new issue