summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2012-11-30 11:05:49 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-01 08:26:52 +0100
commit65ecef63b17da864a415067de2dbf8df8655c616 (patch)
tree3fe66f363d7cf09863bcfbcad1c2c4e7fb86d13f
parent71bc3a1b01217c692d2604bc9c8d9bea008035ec (diff)
Qml1PluginDump: Prevent crash if run without WM
Make sure that the minimal platform plugin is used by default. Change-Id: I32f5ae128f2134f8955d4bdb14974059b98209eb Reviewed-by: hjk <qthjk@ovi.com>
-rw-r--r--tools/qmlplugindump/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp
index ca110dd9..35ee37ae 100644
--- a/tools/qmlplugindump/main.cpp
+++ b/tools/qmlplugindump/main.cpp
@@ -554,6 +554,9 @@ int main(int argc, char *argv[])
QtSimulatorPrivate::SimulatorConnection::createStubInstance();
#endif
+ // don't require a window manager even though we're a QGuiApplication
+ qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("minimal"));
+
QApplication app(argc, argv);
const QStringList args = app.arguments();
const QString appName = QFileInfo(app.applicationFilePath()).baseName();