summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-08-03 05:28:34 +0000
committerOlivier Blin <oblin@mandriva.org>2005-08-03 05:28:34 +0000
commit0dfac417904576df46f095e4f5bb7aaaf10c7614 (patch)
tree5d9a922231905eb12d148006fd051947b7c0331a
parent67194fca119aa81389dceb96e023ecae2bc8c164 (diff)
downloaddrakx-backup-do-not-use-0dfac417904576df46f095e4f5bb7aaaf10c7614.tar
drakx-backup-do-not-use-0dfac417904576df46f095e4f5bb7aaaf10c7614.tar.gz
drakx-backup-do-not-use-0dfac417904576df46f095e4f5bb7aaaf10c7614.tar.bz2
drakx-backup-do-not-use-0dfac417904576df46f095e4f5bb7aaaf10c7614.tar.xz
drakx-backup-do-not-use-0dfac417904576df46f095e4f5bb7aaaf10c7614.zip
don't save configuration dozens of times
-rwxr-xr-xperl-install/standalone/drakconnect3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index c5056f888..2f2f7d78b 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -642,8 +642,9 @@ sub save {
gtkflush();
foreach (keys %$p) {
save_notebook($p->{$_}{intf}, $p->{$_}{gui}) or return;
- $p->{$_}{intf}{save} ? $p->{$_}{intf}{save}->() : apply();
+ $p->{$_}{intf}{save} and $p->{$_}{intf}{save}->();
}
+ apply();
system("/etc/rc.d/init.d/network restart");
$dialog->response(0);
});