Skip to content

Commit

Permalink
Fix logic for fusion theme test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Aug 11, 2023
1 parent a021138 commit 96f3b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/crashreporter/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int main(int argc, char *argv[])
// though it looks slightly less native. Check here after the
// QApplication was constructed, but before any QWidget is
// constructed.
if (qFuzzyCompare(app.devicePixelRatio(), 1)) {
if (!qFuzzyCompare(app.devicePixelRatio(), 1)) {
QApplication::setStyle(QStringLiteral("fusion"));
}
#endif // Q_OS_WIN
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/platform_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void WinPlatform::setApplication(QCoreApplication *application)
// QApplication was constructed, but before any QWidget is
// constructed.
if (auto guiApp = qobject_cast<QGuiApplication *>(application)) {
if (qFuzzyCompare(guiApp->devicePixelRatio(), 1)) {
if (!qFuzzyCompare(guiApp->devicePixelRatio(), 1)) {
QApplication::setStyle(QStringLiteral("fusion"));
}
}
Expand Down

0 comments on commit 96f3b77

Please sign in to comment.