[network-manager-applet] dcb: always initialize priority combo boxes in DCB page



commit 946b3b16ad0f7e1fe9312c623a39e9b4f4d49beb
Author: Jiří Klimeš <jklimes redhat com>
Date:   Mon Mar 31 13:01:51 2014 +0200

    dcb: always initialize priority combo boxes in DCB page
    
    Else the errors like this are shown:
    (nm-connection-editor:15976): GLib-GObject-WARNING **: value "-2" of type `gint' is invalid or out of 
range for property `app-fcoe-priority' of type `gint'
    
    Signed-off-by: Jiří Klimeš <jklimes redhat com>

 src/connection-editor/page-dcb.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/connection-editor/page-dcb.c b/src/connection-editor/page-dcb.c
index 04e6811..d50e95d 100644
--- a/src/connection-editor/page-dcb.c
+++ b/src/connection-editor/page-dcb.c
@@ -531,8 +531,7 @@ feature_setup (CEPageDcb *self, NMSettingDcb *s_dcb, const Feature *f)
 
                widget = get_widget (parent->builder, f->prefix, "_priority_combo");
                gtk_widget_set_sensitive (widget, enabled);
-               if (enabled)
-                       gtk_combo_box_set_active (GTK_COMBO_BOX (widget), priority + 1);
+               gtk_combo_box_set_active (GTK_COMBO_BOX (widget), priority + 1);
                g_signal_connect_swapped (widget, "changed", G_CALLBACK (ce_page_changed), self);
        }
 


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