end work to dbus interface

This commit is contained in:
arcan1s
2014-08-06 22:36:10 +04:00
parent 86753070e8
commit dee47b0ffc
7 changed files with 147 additions and 52 deletions

View File

@ -336,11 +336,11 @@ bool Netctl::autoIsProfileEnabled(const QString profile)
if (debug) qDebug() << "[Netctl]" << "[autoIsProfileEnabled]";
if (debug) qDebug() << "[Netctl]" << "[autoIsProfileEnabled]" << ":" << "Profile" << profile;
bool status = true;
bool status = false;
QList<netctlProfileInfo> profiles = getProfileListFromNetctlAuto();
for (int i=0; i<profiles.count(); i++)
if ((profiles[i].name == profile) && (!profiles[i].enabled)) {
status = false;
if ((profiles[i].name == profile) && (profiles[i].enabled)) {
status = true;
break;
}