Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fw-control-center.git;a=commitdiff;h=7d3025749738117da7185c0e9ab3d398dc937cb6
commit 7d3025749738117da7185c0e9ab3d398dc937cb6 Author: Priyank <priy...@frugalware.org> Date: Sat Jan 31 19:45:09 2009 +0530 Fix a bug when deleting ADSL interfaces * ADSL information was not removed even after deleting an adsl interface (Thanks to Ravi Saini for reporting) diff --git a/gnetconfig/src/gnetconfig-interface.c b/gnetconfig/src/gnetconfig-interface.c index 5f26aab..6973ff9 100644 --- a/gnetconfig/src/gnetconfig-interface.c +++ b/gnetconfig/src/gnetconfig-interface.c @@ -1090,6 +1090,14 @@ cb_gn_interface_delete (GtkButton *button, gpointer data) else { active_profile->interfaces = g_list_delete_link (active_profile->interfaces, interface); + /* if the interface to be deleted is an ADSL one, then also clear all ADSL info about + that interface */ + if (!strcmp(active_profile->adsl_interface,inte->name)) + { + memset (active_profile->adsl_interface, 0, PATH_MAX+1); + memset (active_profile->adsl_username, 0, PATH_MAX+1); + memset (active_profile->adsl_password, 0, PATH_MAX+1); + } fwnet_writeconfig (active_profile, NULL); gn_message (_("Interface deleted successfully")); gnetconfig_populate_interface_list (active_profile); _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git