summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/wlan/wlanimp2.cpp
Side-by-side diff
Diffstat (limited to 'noncore/settings/networksettings/wlan/wlanimp2.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/wlan/wlanimp2.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/noncore/settings/networksettings/wlan/wlanimp2.cpp b/noncore/settings/networksettings/wlan/wlanimp2.cpp
index e7b842b..b988822 100644
--- a/noncore/settings/networksettings/wlan/wlanimp2.cpp
+++ b/noncore/settings/networksettings/wlan/wlanimp2.cpp
@@ -15,5 +15,5 @@
#include <qcombobox.h>
-#ifdef QWS
+#ifdef QWS
#include <opie/oprocess.h>
#else
@@ -27,5 +27,5 @@
/**
* Constructor, read in the wireless.opts file for parsing later.
- */
+ */
WLANImp::WLANImp( QWidget* parent, const char* name, Interface *i, bool modal, WFlags fl) : WLAN(parent, name, modal, fl), currentProfile("*"), interface(i) {
interfaces = new Interfaces;
@@ -41,10 +41,10 @@ WLANImp::WLANImp( QWidget* parent, const char* name, Interface *i, bool modal, W
WLANImp::~WLANImp() {
- delete interfaces;
+//FIXME: delete interfaces;
}
/**
* Change the profile for both wireless settings and network settings.
- */
+ */
void WLANImp::setProfile(const QString &profile){
interfaceSetup->setProfile(profile);
@@ -59,5 +59,5 @@ void WLANImp::parseOpts() {
return;
-
+
opt = interfaces->getInterfaceOption("wireless_essid", error);
if(opt == "any" || opt == "off" || opt.isNull()){
@@ -76,5 +76,5 @@ void WLANImp::parseOpts() {
mode->setCurrentItem(1);
}
-
+
opt = interfaces->getInterfaceOption("wireless_ap", error).simplifyWhiteSpace();
if (! opt.isNull()) {
@@ -133,5 +133,5 @@ void WLANImp::parseKeyStr(QString keystr) {
keyRadio3->setChecked(true);
break;
- }
+ }
} else {
// key
@@ -141,5 +141,5 @@ void WLANImp::parseKeyStr(QString keystr) {
if (enc == -1)
enc = 1;
- QStringList::Iterator next = ++it;
+ QStringList::Iterator next = ++it;
if (it == keys.end()) {
break;
@@ -188,6 +188,6 @@ void WLANImp::accept() {
return;
}
- }
-
+ }
+
if (essid->currentText().isEmpty()) {
QMessageBox::information(this, "Error", "Please select/enter an ESSID.", QMessageBox::Ok);
@@ -199,5 +199,5 @@ void WLANImp::accept() {
return;
}
-
+
// Try to save the interfaces settings.
writeOpts();