[epiphany/mcatanzaro/#1417: 3/3] history-dialog: ensure Remove button is initially insensitive




commit 5af696a750a563753dbc71b086a1968765780371
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Jan 5 11:55:04 2021 -0600

    history-dialog: ensure Remove button is initially insensitive
    
    Currently we crash if clicking Remove when nothing is selected.
    
    Fixes #1417

 src/ephy-history-dialog.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/ephy-history-dialog.c b/src/ephy-history-dialog.c
index ce3d3db3f..7066e8ffe 100644
--- a/src/ephy-history-dialog.c
+++ b/src/ephy-history-dialog.c
@@ -954,6 +954,7 @@ ephy_history_dialog_init (EphyHistoryDialog *self)
   self->cancellable = g_cancellable_new ();
   self->urls = NULL;
   self->sorter_source = 0;
+  self->is_selection_empty = TRUE;
 
   hdy_search_bar_connect_entry (HDY_SEARCH_BAR (self->search_bar), GTK_ENTRY (self->search_entry));
 


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