diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2014-09-22 19:12:16 +0200 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2014-09-23 08:27:49 +0200 |
commit | 37f12088e45a663271e2ee6759a2b924c9745cd1 (patch) | |
tree | dbb1281f6e02ac7547ae5cf890fcb8dbac0d3319 | |
parent | 54ed36e3c09b159df25feb7a8a11b277fe357ecf (diff) | |
download | NetworkManager-37f12088e45a663271e2ee6759a2b924c9745cd1.tar.gz |
tui: additional fix for 'primary' option
The entry can't be empty. Otherwise removing the value and saving connection
would result in the primary option containing only the first character of the
original value.
-rw-r--r-- | clients/tui/nmt-page-bond.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/tui/nmt-page-bond.c b/clients/tui/nmt-page-bond.c index d39ccd1d89..4dddb3bd63 100644 --- a/clients/tui/nmt-page-bond.c +++ b/clients/tui/nmt-page-bond.c @@ -369,7 +369,7 @@ nmt_page_bond_constructed (GObject *object) nmt_page_grid_append (grid, _("Mode"), widget, NULL); priv->mode = NMT_NEWT_POPUP (widget); - widget = nmt_newt_entry_new (40, 0); + widget = nmt_newt_entry_new (40, NMT_NEWT_ENTRY_NONEMPTY); g_signal_connect (widget, "notify::text", G_CALLBACK (primary_widget_changed), bond); nmt_page_grid_append (grid, _("Primary"), widget, NULL); |