[network-manager-applet/lr/wifi-dialog-fixes: 1/6] libnma/wifi-dialog: don't focus a hidden widget



commit e142aed637601e56e8432c8a4e48414c9804e985
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Wed Oct 24 17:20:07 2018 +0200

    libnma/wifi-dialog: don't focus a hidden widget
    
    It makes no sense and Gtk+ dislikes this:
    
      (lt-wifi-dialog:791007): Gtk-CRITICAL **: 17:16:55.127: gtk_widget_event:
        assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

 src/libnma/nma-wifi-dialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libnma/nma-wifi-dialog.c b/src/libnma/nma-wifi-dialog.c
index 3ac5fd68..79599a72 100644
--- a/src/libnma/nma-wifi-dialog.c
+++ b/src/libnma/nma-wifi-dialog.c
@@ -1124,7 +1124,7 @@ internal_init (NMAWifiDialog *self,
                gtk_widget_hide (widget);
        }
 
-       if (security_combo_focus)
+       if (security_combo_focus && !secrets_only)
                gtk_widget_grab_focus (priv->sec_combo);
        else if (priv->network_name_focus) {
                widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "network_name_entry"));


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