summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-07-22 00:03:12 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2019-07-22 00:03:12 +0200
commit512db8c6ff55819e421761c4001f4a91ff117946 (patch)
tree5eed81b7bb41844019ad0f1c1e6a799557bfcbd5 /src
parentFix linting issues (diff)
downloadnheko-512db8c6ff55819e421761c4001f4a91ff117946.tar.xz
Actually set attributes before starting the app
fixes "Attribute Qt::AA_EnableHighDpiScaling must be set before
QCoreApplication is created."
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp

index bd7560da..60bb6c76 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -118,12 +118,12 @@ main(int argc, char *argv[]) } #endif - QApplication app(argc, argv); QCoreApplication::setApplicationName("nheko"); QCoreApplication::setApplicationVersion(nheko::version); QCoreApplication::setOrganizationName("nheko"); QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QApplication app(argc, argv); QCommandLineParser parser; parser.addHelpOption();