changes before renaming

This commit is contained in:
arcan1s
2014-03-06 22:10:27 +04:00
parent 682b6c5b4f
commit 028b636d22
3 changed files with 44 additions and 26 deletions

View File

@ -206,14 +206,11 @@ bool Netctl::updateSourceEvent(const QString &source)
QStringList profile = cmdOutput.split(QString("\n"), QString::SkipEmptyParts);
for (int i=0; i<profile.count(); i++)
if (profile[i].split(QString(" "), QString::SkipEmptyParts)[0] == QString("Loaded:")) {
if (profile[i].indexOf(QString("enabled")) > -1) {
if (profile[i].indexOf(QString("enabled")) > -1)
value = QString("enabled");
break;
}
else if (profile[i].indexOf(QString("static")) > -1) {
else if (profile[i].indexOf(QString("static")) > -1)
value = QString("static");
break;
}
break;
}
}
setData(source, QString("value"), value);