[epiphany/gnome-3-28] Tags with empty labels are no longer allowed in bookmarks



commit 0f8584cef5dac1884d247c3ad99927ccba6bc1ae
Author: Aral Balkan <aral aralbalkan com>
Date:   Thu Nov 29 22:30:46 2018 +0000

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]