main: Add `QCoreApplication::setQuitLockEnabled(false);`

Fixes #1401
This commit is contained in:
Jonas Kvinge 2024-03-17 21:46:15 +01:00
parent d1839d87e7
commit bd4b6c1f01
1 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,8 @@ int main(int argc, char *argv[]) {
QCoreApplication::setApplicationVersion(STRAWBERRY_VERSION_DISPLAY);
QCoreApplication::setOrganizationDomain("strawberrymusicplayer.org");
QCoreApplication::setQuitLockEnabled(false);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);