diff --git a/dataengine.cpp b/dataengine.cpp index 455179ba9..f03bda4a1 100644 --- a/dataengine.cpp +++ b/dataengine.cpp @@ -488,7 +488,7 @@ void DataEngine::removeSource(const QString& source) } } -void DataEngine::clearSources() +void DataEngine::removeAllSources() { QMutableHashIterator it(d->sources); while (it.hasNext()) { diff --git a/dataengine.h b/dataengine.h index 2a123fb05..58f299b00 100644 --- a/dataengine.h +++ b/dataengine.h @@ -361,7 +361,7 @@ class PLASMA_EXPORT DataEngine : public QObject /** * Removes all data sources **/ - void clearSources(); + void removeAllSources(); /** * Sets whether or not this engine is valid, e.g. can be used. diff --git a/scripting/dataenginescript.cpp b/scripting/dataenginescript.cpp index b22ec94ba..92b0c82b3 100644 --- a/scripting/dataenginescript.cpp +++ b/scripting/dataenginescript.cpp @@ -124,7 +124,7 @@ void DataEngineScript::setPollingInterval(uint frequency) void DataEngineScript::clearSources() { if (d->dataEngine) { - d->dataEngine->clearSources(); + d->dataEngine->removeAllSources(); } }