summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/qmljsplugindumper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/qmljs/qmljsplugindumper.cpp')
-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);
}