Fix IP address sensitivity for SSIDs
authorRoy Marples <roy@marples.name>
Wed, 19 Nov 2014 10:43:55 +0000 (10:43 +0000)
committerRoy Marples <roy@marples.name>
Wed, 19 Nov 2014 10:43:55 +0000 (10:43 +0000)
src/dhcpcd-gtk/prefs.c

index 855b518c2d053c434baec79e756ee3f36920136f..e53f49efe370964974c1f6e4efa377df5ee161b6 100644 (file)
@@ -331,7 +331,7 @@ names_on_change(_unused GtkWidget *widget, gpointer data)
                        }
        }
        gtk_widget_set_sensitive(address,
-           iface && (iface->flags & IFF_POINTOPOINT) == 0);
+           !iface || (iface->flags & IFF_POINTOPOINT) == 0);
        if (block && name) {
                errno = 0;
                config = dhcpcd_config_read(con, block, name);