return the null engine when a QString() engine() is requested
svn path=/trunk/KDE/kdelibs/; revision=1051211
This commit is contained in:
parent
62f15dae7a
commit
47993d39b3
@ -95,6 +95,10 @@ DataEngineManager::~DataEngineManager()
|
||||
|
||||
Plasma::DataEngine *DataEngineManager::engine(const QString &name) const
|
||||
{
|
||||
if (name.isEmpty()) {
|
||||
return d->nullEngine();
|
||||
}
|
||||
|
||||
Plasma::DataEngine::Dict::const_iterator it = d->engines.constFind(name);
|
||||
if (it != d->engines.constEnd()) {
|
||||
// ref and return the engine
|
||||
|
Loading…
Reference in New Issue
Block a user