Diffstat (limited to 'noncore/net/networksetup/interfacesetupimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/interfacesetupimp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/networksetup/interfacesetupimp.cpp b/noncore/net/networksetup/interfacesetupimp.cpp index 1327726..a8731a9 100644 --- a/noncore/net/networksetup/interfacesetupimp.cpp +++ b/noncore/net/networksetup/interfacesetupimp.cpp | |||
@@ -29,25 +29,25 @@ InterfaceSetupImp::InterfaceSetupImp(QWidget* parent, const char* name, Interfac | |||
29 | leaseTime->hide(); | 29 | leaseTime->hide(); |
30 | leaseHoursLabel->hide(); | 30 | leaseHoursLabel->hide(); |
31 | } | 31 | } |
32 | } | 32 | } |
33 | 33 | ||
34 | /** | 34 | /** |
35 | * Save the current settings, then write out the interfaces file and close. | 35 | * Save the current settings, then write out the interfaces file and close. |
36 | */ | 36 | */ |
37 | void InterfaceSetupImp::accept(){ | 37 | void InterfaceSetupImp::accept(){ |
38 | if(!saveSettings()) | 38 | if(!saveSettings()) |
39 | return; | 39 | return; |
40 | interfaces->write(); | 40 | interfaces->write(); |
41 | close(true); | 41 | QDialog::accept(); |
42 | } | 42 | } |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * Save the settings for the current Interface. | 45 | * Save the settings for the current Interface. |
46 | * @return bool true if successfull, false otherwise | 46 | * @return bool true if successfull, false otherwise |
47 | */ | 47 | */ |
48 | bool InterfaceSetupImp::saveSettings(){ | 48 | bool InterfaceSetupImp::saveSettings(){ |
49 | // eh can't really do anything about it other then return. :-D | 49 | // eh can't really do anything about it other then return. :-D |
50 | if(!interfaces->isInterfaceSet()) | 50 | if(!interfaces->isInterfaceSet()) |
51 | return true; | 51 | return true; |
52 | 52 | ||
53 | bool error = false; | 53 | bool error = false; |