summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi.mohamed@digia.com>2014-07-31 15:11:58 +0200
committerKai Koehne <kai.koehne@digia.com>2014-08-01 09:53:03 +0200
commit1a26446186b19fadc0592a4b12d2830d4995cbd3 (patch)
tree57253a8458b314466ad35e9a50a7b306b6356e4c /src
parent92cdd7045b48ea6140341f7f0cb0f591d2c0a351 (diff)
downloadqt-creator-1a26446186b19fadc0592a4b12d2830d4995cbd3.tar.gz
qmljs: do not try to dump without uri
qmlplugindump --path always fails, so skip it Change-Id: Ica2d25c864104aa77efbc26913b079c98ff5e283 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/libs/qmljs/qmljsplugindumper.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/libs/qmljs/qmljsplugindumper.cpp b/src/libs/qmljs/qmljsplugindumper.cpp
index bdd6c63cf4..18fb1666ed 100644
--- a/src/libs/qmljs/qmljsplugindumper.cpp
+++ b/src/libs/qmljs/qmljsplugindumper.cpp
@@ -465,18 +465,13 @@ void PluginDumper::dump(const Plugin &plugin)
connect(process, SIGNAL(finished(int)), SLOT(qmlPluginTypeDumpDone(int)));
connect(process, SIGNAL(error(QProcess::ProcessError)), SLOT(qmlPluginTypeDumpError(QProcess::ProcessError)));
QStringList args;
- if (plugin.importUri.isEmpty()) {
- args << QLatin1String("--path");
- args << plugin.importPath;
- if (ComponentVersion(plugin.importVersion).isValid())
- args << plugin.importVersion;
- } else {
- if (info.qmlDumpHasRelocatableFlag)
- args << QLatin1String("-relocatable");
- args << plugin.importUri;
- args << plugin.importVersion;
- args << plugin.importPath;
- }
+ if (plugin.importUri.isEmpty())
+ return; // dumping with --path always fails
+ if (info.qmlDumpHasRelocatableFlag)
+ args << QLatin1String("-relocatable");
+ args << plugin.importUri;
+ args << plugin.importVersion;
+ args << plugin.importPath;
process->start(info.qmlDumpPath, args);
m_runningQmldumps.insert(process, plugin.qmldirPath);
}