summaryrefslogtreecommitdiffstats
path: root/lib/network/netcenter.pm
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-04-15 19:23:48 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-04-15 19:23:48 +0000
commit0bbae62b3c85873d9653a20f07158579fe8102d5 (patch)
tree9eb57a1cf207e29398af4000414d9aa25cb89695 /lib/network/netcenter.pm
parentcfaae9807d15e6aa22801f443792f5a16afbf0be (diff)
downloaddrakx-net-0bbae62b3c85873d9653a20f07158579fe8102d5.tar
drakx-net-0bbae62b3c85873d9653a20f07158579fe8102d5.tar.gz
drakx-net-0bbae62b3c85873d9653a20f07158579fe8102d5.tar.bz2
drakx-net-0bbae62b3c85873d9653a20f07158579fe8102d5.tar.xz
drakx-net-0bbae62b3c85873d9653a20f07158579fe8102d5.zip
Support default CRDA domain (required for #49982, #49983 and #49171).
Diffstat (limited to 'lib/network/netcenter.pm')
-rwxr-xr-xlib/network/netcenter.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm
index 389bc03..f6deee3 100755
--- a/lib/network/netcenter.pm
+++ b/lib/network/netcenter.pm
@@ -129,10 +129,11 @@ sub get_connections() {
}
sub advanced_settings {
- my ($in) = @_;
+ my ($in, $net) = @_;
my $u = network::network::advanced_settings_read();
- if (network::network::advanced_choose($in, $u)) {
+ if (network::network::advanced_choose($in, $net, $u)) {
network::network::advanced_settings_write($u);
+ network::network::write_network_conf($net);
}
}
@@ -165,7 +166,7 @@ sub main {
map_index { build_cmanager_box($_, $::i == 0) } @cmanagers,
])),
0, gtknew('HButtonBox', spacing => 6, layout => 'end', children_loose => [
- gtknew('Button', text => N("Advanced settings"), clicked => sub { advanced_settings($in) }),
+ gtknew('Button', text => N("Advanced settings"), clicked => sub { advanced_settings($in, $net) }),
gtknew('Button', text => N("Quit"), clicked => sub { Gtk2->main_quit }),
]),
]),