Commit d513a424 authored by Nate Graham's avatar Nate Graham
Browse files

Disable session management properly

The attribute needs to be set before the QGuiApplication is created or
else it doesn't have any effect.

BUG: 415874
(cherry picked from commit 718e6fdc)
parent d72ef8c8
......@@ -79,11 +79,13 @@ void processArgs(QCommandLineParser* parser, DiscoverObject* mainWindow)
int main(int argc, char** argv)
// needs to be set before we create the QGuiApplication
QCoreApplication::setAttribute(Qt::AA_DisableSessionManager, true);
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
app.setAttribute(Qt::AA_DisableSessionManager, true);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment