mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-10 04:15:52 +00:00
end work to dbus interface
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user