From 37f12088e45a663271e2ee6759a2b924c9745cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Mon, 22 Sep 2014 19:12:16 +0200 Subject: [PATCH] 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. --- clients/tui/nmt-page-bond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);