[network-manager-applet] bond: fix setting MTU for bonds when it is 0 (automatic) (rh #1177860)
- From: Jiří Klimeš <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] bond: fix setting MTU for bonds when it is 0 (automatic) (rh #1177860)
- Date: Thu, 27 Aug 2015 08:51:22 +0000 (UTC)
commit d66258a6fce6c9ffacda3be993abe688b77e9cec
Author: Jiří Klimeš <jklimes redhat com>
Date: Mon Aug 24 16:54:25 2015 +0200
bond: fix setting MTU for bonds when it is 0 (automatic) (rh #1177860)
https://bugzilla.redhat.com/show_bug.cgi?id=1177860
src/connection-editor/page-bond.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/connection-editor/page-bond.c b/src/connection-editor/page-bond.c
index fd82e85..cb69026 100644
--- a/src/connection-editor/page-bond.c
+++ b/src/connection-editor/page-bond.c
@@ -545,13 +545,12 @@ ui_to_setting (CEPageBond *self)
g_free (targets);
mtu = gtk_spin_button_get_value_as_int (priv->mtu);
- if (mtu) {
- if (!priv->wired) {
- priv->wired = NM_SETTING_WIRED (nm_setting_wired_new ());
- nm_connection_add_setting (connection, NM_SETTING (priv->wired));
- }
- g_object_set (priv->wired, NM_SETTING_WIRED_MTU, mtu, NULL);
+ if (mtu && !priv->wired) {
+ priv->wired = NM_SETTING_WIRED (nm_setting_wired_new ());
+ nm_connection_add_setting (connection, NM_SETTING (priv->wired));
}
+ if (priv->wired)
+ g_object_set (priv->wired, NM_SETTING_WIRED_MTU, mtu, NULL);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]