mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-13 05:45:50 +00:00
@ -238,7 +238,6 @@ QList<netctlProfileInfo> Netctl::getProfileListFromNetctlAuto()
|
||||
profileInfo.essid = profileValues[2];
|
||||
profileInfo.interface = profileValues[3];
|
||||
profileInfo.type = profileValues[0];
|
||||
profileInfo.essid = profileValues[1];
|
||||
profileInfo.netctlAuto = true;
|
||||
fullProfilesInfo.append(profileInfo);
|
||||
}
|
||||
|
@ -346,7 +346,13 @@ QList<netctlWifiInfo> WpaSup::scanWifi()
|
||||
rawList.removeFirst();
|
||||
QStringList names;
|
||||
|
||||
QList<netctlProfileInfo> profiles = netctlCommand->getProfileList();
|
||||
// init profile list
|
||||
QList<netctlProfileInfo> profiles;
|
||||
if (netctlCommand->isNetctlAutoRunning())
|
||||
profiles = netctlCommand->getProfileListFromNetctlAuto();
|
||||
else
|
||||
profiles = netctlCommand->getProfileList();
|
||||
// iterate by wifi output
|
||||
for (int i=0; i<rawList.count(); i++) {
|
||||
QStringList line = rawList[i].split(QChar('\t'));
|
||||
if (line.count() != 5) continue;
|
||||
|
Reference in New Issue
Block a user