Commit b83f028a authored by Brandon Guttersohn's avatar Brandon Guttersohn Committed by Thomas Haller
Browse files

properties: fix validation of static-key in GUI

Otherwise it's not possible to edit a connection with static key.

[ modified original patch and add commit message]

Fixes: 86a70095
parent ed55d456
......@@ -449,7 +449,7 @@ auth_widget_check_validity (GtkBuilder *builder, const char *contype, GError **e
} else if (!strcmp (contype, NM_OPENVPN_CONTYPE_STATIC_KEY)) {
widget = GTK_WIDGET (gtk_builder_get_object (builder, "sk_key_chooser"));
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (widget));
if (filename && strlen (filename)) {
if (!filename || !filename[0]) {
g_free (filename);
g_set_error (error,
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