Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-09-14 17:48:57 +0300
committerHannah von Reth <hannah.vonreth@owncloud.com>2021-09-14 17:48:57 +0300
commit79d86dc7056fd9cea016ababcb6876ae3361753c (patch)
treeb6a38996f53034e750465194cef5d481ee440a76 /src/gui/application.cpp
parentcef93bf35d9a1696f5e7e9412648620039d7fa75 (diff)
parent5f67ba8816c6b952a156ee3bfe5c90295ac8b136 (diff)
Merge remote-tracking branch 'origin/2.9'
Diffstat (limited to 'src/gui/application.cpp')
-rw-r--r--src/gui/application.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/application.cpp b/src/gui/application.cpp
index 8b8a4daf7..726a49a94 100644
--- a/src/gui/application.cpp
+++ b/src/gui/application.cpp
@@ -756,6 +756,10 @@ void Application::setupTranslations()
QLocale newLocale(lang);
qCDebug(lcApplication) << "language" << lang << "was enforced, changing default locale to" << newLocale;
QLocale::setDefault(newLocale);
+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
+ // setting the layout direction directly only appears to be needed on mac
+ setLayoutDirection(newLocale.textDirection());
+#endif
}
break;