From d8078999a474ad36293416467de71f086f6a09f8 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 4 Aug 2010 01:00:26 +0000 Subject: [PATCH] if someone jerked us around behind our back, then remove record of the cached version and try again CCBUG:233051 svn path=/trunk/KDE/kdelibs/; revision=1158867 --- private/dataengineconsumer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/private/dataengineconsumer.cpp b/private/dataengineconsumer.cpp index 6f593a013..6af441fb4 100644 --- a/private/dataengineconsumer.cpp +++ b/private/dataengineconsumer.cpp @@ -94,7 +94,12 @@ DataEngineConsumer::~DataEngineConsumer() DataEngine *DataEngineConsumer::dataEngine(const QString &name) { if (m_loadedEngines.contains(name)) { - return DataEngineManager::self()->engine(name); + DataEngine *engine = DataEngineManager::self()->engine(name); + if (engine->isValid()) { + return engine; + } else { + m_loadedEngines.remove(name); + } } DataEngine *engine = DataEngineManager::self()->loadEngine(name);