[Pkg-owncloud-commits] [owncloud-client] 78/211: Correct lookup logic for Qt translations
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 25 09:10:28 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 03ee742981686306eef84313d16747044df360cb
Author: Daniel Molkentin <danimo at owncloud.com>
Date: Wed Oct 15 09:32:44 2014 +0200
Correct lookup logic for Qt translations
Fixes #1661
---
src/mirall/application.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mirall/application.cpp b/src/mirall/application.cpp
index 5610cf6..3c56f3b 100644
--- a/src/mirall/application.cpp
+++ b/src/mirall/application.cpp
@@ -534,7 +534,7 @@ void Application::setupTranslations()
setProperty("ui_lang", lang);
const QString qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
const QString qtTrFile = QLatin1String("qt_") + lang;
- if (qtTranslator->load(qtTrFile, qtTrPath)) {
+ if (!qtTranslator->load(qtTrFile, qtTrPath)) {
qtTranslator->load(qtTrFile, trPath);
}
const QString qtkeychainFile = QLatin1String("qt_") + lang;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list