summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clients/common/nm-meta-setting-desc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c
index 29eb98a775..e405f3168f 100644
--- a/clients/common/nm-meta-setting-desc.c
+++ b/clients/common/nm-meta-setting-desc.c
@@ -2484,8 +2484,7 @@ _complete_fcn_connection_type (ARGS_COMPLETE_FCN)
if (v) {
if (!text || strncmp (text, v, text_len) == 0)
result[j++] = g_strdup (v);
- }
- if (!text || !*text || !v) {
+ } else {
v = setting_info->general->setting_name;
if (!text || strncmp (text, v, text_len) == 0)
result[j++] = g_strdup (v);