aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2021-08-23 12:20:22 +0000
committerGitHub <[email protected]>2021-08-23 12:20:22 +0000
commitcfc3f9545e713dc9378108b88d3dc97fd168a572 (patch)
treecb0ef59b60f1a0ebc70156fe1bb6a22c205497c3 /src/main.cpp
parentMerge pull request #15 from saturneric/develop (diff)
parentFix a discovered problem. (diff)
downloadGpgFrontend-cfc3f9545e713dc9378108b88d3dc97fd168a572.tar.gz
GpgFrontend-cfc3f9545e713dc9378108b88d3dc97fd168a572.zip
Merge pull request #22 from saturneric/develop
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ff3b0bb4..1e54d6e7 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"));
+#ifdef WINDOWS
// css
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