diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2012-11-29 15:40:51 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-29 16:29:17 +0100 |
commit | 9e0a98a991407ed2b380ab24bc7fe739a492de10 (patch) | |
tree | 1bc929d0b928b6cdbe6634bbeb5efc0bcc3451f2 | |
parent | 2ad155efe3bd0ba6a8cda1318f2797d82fbb5ef5 (diff) |
Fix crash when calling initialize from non-gui application.
Change-Id: Ib1602e7cba01e9fc05e4c1ea28bc755afa51e0fb
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
-rw-r--r-- | src/activeqt/container/qaxbase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activeqt/container/qaxbase.cpp b/src/activeqt/container/qaxbase.cpp index 36fd770..a212f2c 100644 --- a/src/activeqt/container/qaxbase.cpp +++ b/src/activeqt/container/qaxbase.cpp @@ -1228,7 +1228,7 @@ bool QAxBase::initialize(IUnknown **ptr) // messages to be processed is called during an existing paint operation when WM_PAINT is // also in the queue. static bool asyncExposeSet = false; - if (!asyncExposeSet) { + if (!asyncExposeSet && QGuiApplication::platformNativeInterface()) { QGuiApplication::platformNativeInterface()->setProperty("asyncExpose", QVariant(true)); asyncExposeSet = true; } |