diff options
author | Saturneric <[email protected]> | 2021-08-25 10:00:48 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-08-25 10:00:48 +0000 |
commit | 5b55ebfe6758e3aa7a3b66dbaa5231002291eb44 (patch) | |
tree | 28fe92ffec2d5608b5e6af665ec3b8f06922364a /src/main.cpp | |
parent | Merge branch 'develop' (diff) | |
parent | Update Documents. (diff) | |
download | GpgFrontend-5b55ebfe6758e3aa7a3b66dbaa5231002291eb44.tar.gz GpgFrontend-5b55ebfe6758e3aa7a3b66dbaa5231002291eb44.zip |
Merge branch 'develop'
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index ff3b0bb4..1ec264e7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,12 +43,14 @@ int main(int argc, char *argv[]) { // unicode in source QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf-8")); - // css +#if OS_PLATFORM == WINDOWS + // load css file QFile file(RESOURCE_DIR(qApp->applicationDirPath()) + "/css/default.qss"); file.open(QFile::ReadOnly); QString styleSheet = QLatin1String(file.readAll()); qApp->setStyleSheet(styleSheet); file.close(); +#endif /** * internationalisation. loop to restart mainwindow |