diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/gui/image/qpixmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp index 3d46dc4a6b3..b1be8ff4085 100644 --- a/src/gui/image/qpixmap.cpp +++ b/src/gui/image/qpixmap.cpp @@ -82,7 +82,7 @@ static bool qt_pixmap_thread_test() return false; } - if (qApp->thread() != QThread::currentThread()) { + if (QGuiApplicationPrivate::instance() && qApp->thread() != QThread::currentThread()) { bool fail = false; if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::ThreadedPixmaps)) { printf("Platform plugin does not support threaded pixmaps!\n"); |
