Prevent app from being closed when disabling system tray icon

PR #20627.
Closes #20604.
This commit is contained in:
Vladimir Golovnev
2024-03-29 09:38:54 +03:00
committed by Vladimir Golovnev (Glassez)
parent 694661d751
commit 020b49add1

View File

@@ -258,6 +258,7 @@ Application::Application(int &argc, char **argv)
setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support
#endif #endif
setQuitOnLastWindowClosed(false); setQuitOnLastWindowClosed(false);
setQuitLockEnabled(false);
QPixmapCache::setCacheLimit(PIXMAP_CACHE_SIZE); QPixmapCache::setCacheLimit(PIXMAP_CACHE_SIZE);
#endif #endif