Dominique Leuenberger
66b57b3842
Add upstream bug fix patches OBS-URL: https://build.opensuse.org/request/show/661682 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/epiphany?expand=0&rev=305
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
From 77fab98a0ad4a33a8bfdb137afdda15973bea375 Mon Sep 17 00:00:00 2001
|
|
From: Aral Balkan <aral@aralbalkan.com>
|
|
Date: Thu, 29 Nov 2018 22:30:46 +0000
|
|
Subject: [PATCH] Tags with empty labels are no longer allowed in bookmarks
|
|
|
|
---
|
|
src/bookmarks/ephy-bookmark-properties-grid.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/bookmarks/ephy-bookmark-properties-grid.c b/src/bookmarks/ephy-bookmark-properties-grid.c
|
|
index 3bdd7013e..0706b33f9 100644
|
|
--- a/src/bookmarks/ephy-bookmark-properties-grid.c
|
|
+++ b/src/bookmarks/ephy-bookmark-properties-grid.c
|
|
@@ -265,7 +265,7 @@ ephy_bookmark_properties_grid_buffer_text_changed_cb (EphyBookmarkPropertiesGrid
|
|
group = gtk_widget_get_action_group (GTK_WIDGET (self), "grid");
|
|
action = g_action_map_lookup_action (G_ACTION_MAP (group), "add-tag");
|
|
text = gtk_entry_buffer_get_text (buffer);
|
|
- if (ephy_bookmarks_manager_tag_exists (self->manager, text))
|
|
+ if (ephy_bookmarks_manager_tag_exists (self->manager, text) || g_strcmp0 (text, "") == 0)
|
|
g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE);
|
|
else
|
|
g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE);
|
|
--
|
|
2.18.1
|
|
|