ipconfig: Remove IPv4.gateway key in settings if gateway is not configured
diff --git a/src/ipconfig.c b/src/ipconfig.c
index 7fdc024..bae988c 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -2335,6 +2335,8 @@
 	if (ipconfig->address->gateway)
 		g_key_file_set_string(keyfile, identifier,
 			key, ipconfig->address->gateway);
+	else
+		g_key_file_remove_key(keyfile, identifier, key, NULL);
 	g_free(key);
 
 	return 0;