author | benmeyer <benmeyer> | 2002-09-30 14:46:34 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-09-30 14:46:34 (UTC) |
commit | d79ae2969e74b1caa8e562910715df4ffe1739b3 (patch) (unidiff) | |
tree | 1808d0d3747581ca999ec42b4bb029471a1aa199 /noncore/settings/networksettings/mainwindowimp.cpp | |
parent | 9965bd5c49ff2f22d640d132ac343fdec97b3fb4 (diff) | |
download | opie-d79ae2969e74b1caa8e562910715df4ffe1739b3.zip opie-d79ae2969e74b1caa8e562910715df4ffe1739b3.tar.gz opie-d79ae2969e74b1caa8e562910715df4ffe1739b3.tar.bz2 |
Fixed compiler warnings
Diffstat (limited to 'noncore/settings/networksettings/mainwindowimp.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp index 3c13143..ad9362f 100644 --- a/noncore/settings/networksettings/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindowimp.cpp | |||
@@ -4,2 +4,5 @@ | |||
4 | #include "interfacesetupimp.h" | 4 | #include "interfacesetupimp.h" |
5 | #include "interface.h" | ||
6 | #include "kprocess.h" | ||
7 | #include "module.h" | ||
5 | 8 | ||
@@ -52,2 +55,6 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par | |||
52 | serviceList->header()->hide(); | 55 | serviceList->header()->hide(); |
56 | |||
57 | |||
58 | Config cfg("NetworkSetup"); | ||
59 | profiles = QStringList::split(" ", cfg.readEntry("Profiles", "All")); | ||
53 | } | 60 | } |
@@ -55,5 +62,9 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par | |||
55 | /** | 62 | /** |
56 | * Deconstructor. Unload libraries and save. | 63 | * Deconstructor. Unload libraries and save profile list. |
57 | */ | 64 | */ |
58 | MainWindowImp::~MainWindowImp(){ | 65 | MainWindowImp::~MainWindowImp(){ |
66 | if(profiles.count() > 1){ | ||
67 | Config cfg("NetworkSetup"); | ||
68 | cfg.writeEntry("Profiles", profiles.join(" ")); | ||
69 | } | ||
59 | } | 70 | } |
@@ -254,3 +265,3 @@ void MainWindowImp::jobDone(KProcess *process){ | |||
254 | if(hardwareName != -1) | 265 | if(hardwareName != -1) |
255 | i->setHardwareName(line.mid(hardwareName+11, macAddress-(hardwareName+11))); | 266 | i->setHardwareName(line.mid(hardwareName+11, macAddress-(hardwareName+11)) + QString(" (%1)").arg(i->getInterfaceName())); |
256 | // We have found an interface | 267 | // We have found an interface |