diff options
| author | xiphon <xiphon@protonmail.com> | 2020-10-28 00:56:21 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-10-28 00:57:30 +0000 |
| commit | 9b18344d23319cbd80645e6ac97d6170a444e018 (patch) | |
| tree | 1a385707be68734212c2986f5737291e5ba23968 /src/main/main.cpp | |
| parent | 33afd0bb83d80e89c9c0437ece83a7981a0f1bd9 (diff) | |
| download | monzero-gui-9b18344d23319cbd80645e6ac97d6170a444e018.tar.gz monzero-gui-9b18344d23319cbd80645e6ac97d6170a444e018.tar.xz monzero-gui-9b18344d23319cbd80645e6ac97d6170a444e018.zip | |
main: don't override user-provided QT_QPA_PLATFORM env variable
Diffstat (limited to 'src/main/main.cpp')
| -rw-r--r-- | src/main/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index e13c6198..cfedefd2 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -179,8 +179,8 @@ int main(int argc, char *argv[]) // disable "QApplication: invalid style override passed" warning if (isDesktop) qputenv("QT_STYLE_OVERRIDE", "fusion"); #ifdef Q_OS_LINUX - // force platform xcb - if (isDesktop) qputenv("QT_QPA_PLATFORM", "xcb"); + // platform xcb by default + if (isDesktop && qEnvironmentVariableIsEmpty("QT_QPA_PLATFORM")) qputenv("QT_QPA_PLATFORM", "xcb"); #endif // enable High DPI scaling |
