diff options
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 094935d5a5..694ba3fc1b 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -2293,6 +2293,7 @@ void QGuiApplication::setPalette(const QPalette &pal) */ QFont QGuiApplication::font() { + Q_ASSERT_X(QGuiApplicationPrivate::self, "QGuiApplication::font()", "no QGuiApplication instance"); QMutexLocker locker(&applicationFontMutex); initFontUnlocked(); return *QGuiApplicationPrivate::app_font; |