[epiphany] Tags with empty labels are no longer allowed in bookmarks
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Tags with empty labels are no longer allowed in bookmarks
- Date: Thu, 29 Nov 2018 22:30:55 +0000 (UTC)
commit 673564b60355fae670efa3838e5fb985833681ba
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]