author | kergoth <kergoth> | 2003-04-15 00:46:48 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-15 00:46:48 (UTC) |
commit | 79e83da7936995f247f7ad7ad0f768b6e2545cf1 (patch) (unidiff) | |
tree | a0c1d7c382d6374c2c941b30a00515cbdcfd9270 | |
parent | f3905e771c1abd5fdc430aba364934b717dfa115 (diff) | |
download | opie-79e83da7936995f247f7ad7ad0f768b6e2545cf1.zip opie-79e83da7936995f247f7ad7ad0f768b6e2545cf1.tar.gz opie-79e83da7936995f247f7ad7ad0f768b6e2545cf1.tar.bz2 |
Only restart interface if it was UP previously.
-rw-r--r-- | noncore/settings/networksettings/interfaces/interfacesetupimp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp b/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp index 8d78828..49a47ae 100644 --- a/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp +++ b/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp | |||
@@ -47,9 +47,9 @@ bool InterfaceSetupImp::saveChanges(){ | |||
47 | if(!saveSettings()) | 47 | if(!saveSettings()) |
48 | return false; | 48 | return false; |
49 | 49 | ||
50 | qWarning("restarting interface %s\n", iface.latin1()); | ||
51 | interfaces->write(); | 50 | interfaces->write(); |
52 | 51 | ||
52 | if (interface->getStatus()) { | ||
53 | QString ifup; | 53 | QString ifup; |
54 | ifup += "ifdown "; | 54 | ifup += "ifdown "; |
55 | ifup += iface; | 55 | ifup += iface; |
@@ -76,7 +76,7 @@ bool InterfaceSetupImp::saveChanges(){ | |||
76 | delete owait; | 76 | delete owait; |
77 | 77 | ||
78 | interface->refresh(); | 78 | interface->refresh(); |
79 | 79 | } | |
80 | return true; | 80 | return true; |
81 | } | 81 | } |
82 | 82 | ||