adapt to powermanagement dataengine cleanup

svn path=/trunk/KDE/kdebase/workspace/; revision=1122881
This commit is contained in:
Aaron J. Seigo 2010-05-04 21:58:16 +00:00 committed by Marco Martin
parent 6216e0ae72
commit 73cea339a8

View File

@ -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();
}