aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libs/qmljs/qmljsplugindumper.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libs/qmljs/qmljsplugindumper.cpp b/src/libs/qmljs/qmljsplugindumper.cpp
index 14539410bd..2187c7adcd 100644
--- a/src/libs/qmljs/qmljsplugindumper.cpp
+++ b/src/libs/qmljs/qmljsplugindumper.cpp
@@ -421,10 +421,12 @@ void PluginDumper::loadQmltypesFile(const QStringList &qmltypesFilePaths,
void PluginDumper::dump(const Plugin &plugin)
{
+ ModelManagerInterface::ProjectInfo info = m_modelManager->defaultProjectInfo();
+ const Snapshot snapshot = m_modelManager->snapshot();
+ LibraryInfo libraryInfo = snapshot.libraryInfo(plugin.qmldirPath);
+
// if there are type infos, don't dump!
if (!plugin.typeInfoPaths.isEmpty()) {
- const Snapshot snapshot = m_modelManager->snapshot();
- LibraryInfo libraryInfo = snapshot.libraryInfo(plugin.qmldirPath);
if (!libraryInfo.isValid())
return;
@@ -432,11 +434,7 @@ void PluginDumper::dump(const Plugin &plugin)
return;
}
- ModelManagerInterface::ProjectInfo info = m_modelManager->defaultProjectInfo();
-
if (!info.tryQmlDump || info.qmlDumpPath.isEmpty()) {
- const Snapshot snapshot = m_modelManager->snapshot();
- LibraryInfo libraryInfo = snapshot.libraryInfo(plugin.qmldirPath);
if (!libraryInfo.isValid())
return;