summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-14 17:22:31 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-14 17:22:31 +0000
commit5fa9d6db48beec58c1e0ae296ddb0e4918d69fd7 (patch)
tree85a0a30de74dd060208d56822dcb7ef02c2ff3c1
parent4679eaf01dbd8de821a6b5e4744f96ffc4eb9e09 (diff)
downloaddrakx-net-5fa9d6db48beec58c1e0ae296ddb0e4918d69fd7.tar
drakx-net-5fa9d6db48beec58c1e0ae296ddb0e4918d69fd7.tar.gz
drakx-net-5fa9d6db48beec58c1e0ae296ddb0e4918d69fd7.tar.bz2
drakx-net-5fa9d6db48beec58c1e0ae296ddb0e4918d69fd7.tar.xz
drakx-net-5fa9d6db48beec58c1e0ae296ddb0e4918d69fd7.zip
only write network settings to have to be applied before starting connection (workaround for #38792)
-rw-r--r--lib/network/connection_manager.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index 5fec995..cb3f066 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -172,10 +172,9 @@ sub start_connection {
gtkset_mousecursor_wait($cmanager->{gui}{w}{window}->window);
my $_wait = $cmanager->{in}->wait_message(N("Please wait"), N("Connecting..."));
- #- settings have to be rewritten only if they are impacted by choices from the main window
- if ($cmanager->{connection}->can('get_networks')) {
+ if ($cmanager->{connection}->can('apply_network_selection')) {
load_settings($cmanager);
- write_settings($cmanager);
+ $cmanager->{connection}->apply_network_selection($cmanager);
}
$cmanager->{connection}->prepare_connection if $cmanager->{connection}->can('prepare_connection');
$cmanager->{connection}->disconnect;