summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/wlan/wlanimp.cpp
Unidiff
Diffstat (limited to 'noncore/net/networksetup/wlan/wlanimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/wlan/wlanimp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/networksetup/wlan/wlanimp.cpp b/noncore/net/networksetup/wlan/wlanimp.cpp
index 689eae2..d4b4af9 100644
--- a/noncore/net/networksetup/wlan/wlanimp.cpp
+++ b/noncore/net/networksetup/wlan/wlanimp.cpp
@@ -35,25 +35,25 @@ WLANImp::WLANImp( QWidget* parent, const char* name, Interface *i, bool modal, W
35 } 35 }
36 file.close(); 36 file.close();
37 settingsFileText = QStringList::split("\n", line, true); 37 settingsFileText = QStringList::split("\n", line, true);
38 parseSettingFile(); 38 parseSettingFile();
39 } 39 }
40 else 40 else
41 qDebug(QString("WLANImp: Can't open file: %1 for reading.").arg(wlanFile).latin1()); 41 qDebug(QString("WLANImp: Can't open file: %1 for reading.").arg(wlanFile).latin1());
42} 42}
43 43
44/** 44/**
45 * Change the profile for both wireless settings and network settings. 45 * Change the profile for both wireless settings and network settings.
46 */ 46 */
47void WLANImp::setProfile(QString &profile){ 47void WLANImp::setProfile(const QString &profile){
48 interfaceSetup->setProfile(profile); 48 interfaceSetup->setProfile(profile);
49 parseSettingFile(); 49 parseSettingFile();
50} 50}
51 51
52/** 52/**
53 * Parses the settings file that was read in and gets any setting from it. 53 * Parses the settings file that was read in and gets any setting from it.
54 */ 54 */
55void WLANImp::parseSettingFile(){ 55void WLANImp::parseSettingFile(){
56 bool foundCase = false; 56 bool foundCase = false;
57 bool found = false; 57 bool found = false;
58 for ( QStringList::Iterator it = settingsFileText.begin(); it != settingsFileText.end(); ++it ) { 58 for ( QStringList::Iterator it = settingsFileText.begin(); it != settingsFileText.end(); ++it ) {
59 QString line = (*it).simplifyWhiteSpace(); 59 QString line = (*it).simplifyWhiteSpace();