Commit 37f12088 authored by Jiří Klimeš's avatar Jiří Klimeš
Browse files

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.
parent 54ed36e3
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment