diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-11-10 12:56:23 +0100 |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-11-10 13:40:37 +0100 |
commit | 2a0c11e13ff1cba30f3be324dadd14f8d0a1baa6 (patch) | |
tree | 036b74adb61711562cf9052584c7fb3721f90ee0 /src/gui/kernel/qapplication.cpp | |
parent | 7429ff911e05c05fbdd986a5932545571ee4beef (diff) | |
download | qt4-tools-2a0c11e13ff1cba30f3be324dadd14f8d0a1baa6.tar.gz |
PlatformPlugin: Do not load the plugin if there is no GUI
Otherwise valgrind might complain we use uninitialized value
(when using the X11 structure)
Reviewed-by: Gabriel
Diffstat (limited to 'src/gui/kernel/qapplication.cpp')
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 987aa26bcb..4b8f6a06ed 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -791,7 +791,8 @@ void QApplicationPrivate::construct( } //make sure the plugin is loaded - qt_guiPlatformPlugin(); + if (qt_is_gui_used) + qt_guiPlatformPlugin(); #endif } |