Diffstat (limited to 'noncore/settings/networksettings/wlan/wlanimp2.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanimp2.cpp | 22 |
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 @@ -16,3 +16,3 @@ -#ifdef QWS +#ifdef QWS #include <opie/oprocess.h> @@ -28,3 +28,3 @@ * 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) { @@ -42,3 +42,3 @@ WLANImp::WLANImp( QWidget* parent, const char* name, Interface *i, bool modal, W WLANImp::~WLANImp() { - delete interfaces; +//FIXME: delete interfaces; } @@ -47,3 +47,3 @@ WLANImp::~WLANImp() { * Change the profile for both wireless settings and network settings. - */ + */ void WLANImp::setProfile(const QString &profile){ @@ -60,3 +60,3 @@ void WLANImp::parseOpts() { - + opt = interfaces->getInterfaceOption("wireless_essid", error); @@ -77,3 +77,3 @@ void WLANImp::parseOpts() { } - + opt = interfaces->getInterfaceOption("wireless_ap", error).simplifyWhiteSpace(); @@ -134,3 +134,3 @@ void WLANImp::parseKeyStr(QString keystr) { break; - } + } } else { @@ -142,3 +142,3 @@ void WLANImp::parseKeyStr(QString keystr) { enc = 1; - QStringList::Iterator next = ++it; + QStringList::Iterator next = ++it; if (it == keys.end()) { @@ -189,4 +189,4 @@ void WLANImp::accept() { } - } - + } + if (essid->currentText().isEmpty()) { @@ -200,3 +200,3 @@ void WLANImp::accept() { } - + // Try to save the interfaces settings. |