Репозитории ALT
S: | 3.28.2.2-alt1 |
5.1: | 2.0.5.0-alt6 |
4.1: | 2.0.5.0-alt5 |
4.0: | 2.0.5.0-alt5 |
3.0: | 2.0.4.0-alt2 |
Группа :: Графика
Пакет: qcad
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: qcad-alt-check-translation-file.patch
Скачать
Скачать
diff --git a/src/core/RSettings.cpp b/src/core/RSettings.cpp
index 449694bc9..09c93d1ea 100644
--- a/src/core/RSettings.cpp
+++ b/src/core/RSettings.cpp
@@ -608,6 +608,10 @@ void RSettings::loadTranslations(const QString& module, const QStringList& dirs)
QTranslator* translator = new QTranslator(qApp);
for (int i=0; i<translationsDirs.size(); ++i) {
QString name = module + "_" + locale;
+ /* Check if file exists */
+ if (!QFile::exists(QDir(translationsDirs[i]).filePath(name + ".qm"))) {
+ continue;
+ }
if (translator->load(name, translationsDirs[i])) {
QCoreApplication::installTranslator(translator);
break;