adapt to powermanagement dataengine cleanup
svn path=/trunk/KDE/kdebase/workspace/; revision=1122881
This commit is contained in:
parent
6216e0ae72
commit
73cea339a8
@ -98,7 +98,7 @@ bool AppInterface::hasBattery() const
|
||||
Plasma::DataEngineManager *engines = Plasma::DataEngineManager::self();
|
||||
Plasma::DataEngine *power = engines->loadEngine("powermanagement");
|
||||
|
||||
const QStringList batteries = power->query("Battery")["sources"].toStringList();
|
||||
const QStringList batteries = power->query("Battery")["Sources"].toStringList();
|
||||
engines->unloadEngine("powermanagement");
|
||||
return !batteries.isEmpty();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user