Warn that the config file is not writeable before you start editing it.
authorRoy Marples <roy@marples.name>
Fri, 5 Dec 2014 11:12:25 +0000 (11:12 +0000)
committerRoy Marples <roy@marples.name>
Fri, 5 Dec 2014 11:12:25 +0000 (11:12 +0000)
src/dhcpcd-gtk/prefs.c

index 4023cd0d04827541f2d6d4ff4cce88ffcfb5c15e..48bab962061da21e5a1dc461696adc86fe131e61 100644 (file)
@@ -650,4 +650,8 @@ prefs_show(DHCPCD_CONNECTION *con)
        blocks_on_change(blocks, con);
        show_config(NULL);
        gtk_widget_show_all(dialog);
+
+       if (!dhcpcd_config_writeable(con))
+               config_err_dialog(con, true,
+                   _("The dhcpcd configuration file is not writeable"));
 }