[nautilus] location-entry: Don't crash on activation



commit ecf2008b74bfe9324fe88be2767dfa43972d51db
Author: António Fernandes <antoniof gnome org>
Date:   Sun Jan 9 03:09:59 2022 +0000

    location-entry: Don't crash on activation
    
    We have been chaining up to parent class implementation of
    ::activate signal default handler.
    
    But there is no default implementation in GTK4, so pressing
    Enter/Return when location entry is focused causes a crash
    
    Remove chain-up statement to fix crash.
    
    Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2085

 src/nautilus-location-entry.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/nautilus-location-entry.c b/src/nautilus-location-entry.c
index bc37cc201..6a5dc37fc 100644
--- a/src/nautilus-location-entry.c
+++ b/src/nautilus-location-entry.c
@@ -798,8 +798,6 @@ nautilus_location_entry_activate (GtkEntry *entry)
 
         g_free (uri_scheme);
     }
-
-    GTK_ENTRY_CLASS (nautilus_location_entry_parent_class)->activate (entry);
 }
 
 static void


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