[Frugalware-darcs] fw-control-center: gnetconfig: fixed a bug in
interface deletion.
Priyank
priyank at frugalware.org
Sun Jun 10 10:05:07 CEST 2007
Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=fw-control-center;a=darcs_commitdiff;h=20070610080207-5ce2c-6996dc36e7ef999a2c4f4c86d41da906eac0ffc3.gz;
[gnetconfig: fixed a bug in interface deletion.
Priyank <priyank at frugalware.org>**20070610080207
* In an inactive profile, allow deleting an interface even if it's up in some other profile.
] {
hunk ./gnetconfig/src/gnetconfig-interface.c 807
+ gchar *profile = NULL;
hunk ./gnetconfig/src/gnetconfig-interface.c 834
+ gtk_combo_box_get_active_iter (gn_profile_combo, &iter);
+ model = gtk_combo_box_get_model (gn_profile_combo);
+ gtk_tree_model_get (model, &iter, 1, &profile, -1);
hunk ./gnetconfig/src/gnetconfig-interface.c 838
- if (!fwutil_system(ptr))
+ if ((strcmp(active_profile->name, profile)) && !fwutil_system(ptr))
}
More information about the Frugalware-darcs
mailing list