diff options
author | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2014-11-19 15:23:32 +0100 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@theqtcompany.com> | 2014-11-25 13:06:41 +0100 |
commit | af803b60ae1e7fcc3279d35291dbbf1d05708a8b (patch) | |
tree | e3bdcfca2b1dbf15957fa840ef233a0a2b639820 | |
parent | 42fc31bff7745d5b35abd62853f6e1364cb6bdda (diff) |
qmljs: cleanup
Change-Id: I951403ecec2b896e5b0322d79dfad952deeaae4a
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
-rw-r--r-- | src/libs/qmljs/qmljsplugindumper.cpp | 10 |
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; |