From 3b23470e2a269c295ed9bf4bc559900a955c0fa7 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Tue, 11 Dec 2018 20:04:44 +0300 Subject: [PATCH] Built by Qt 4.8 fixed --- limereport/lrsettingdialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/limereport/lrsettingdialog.cpp b/limereport/lrsettingdialog.cpp index b05fa74..9040fb0 100644 --- a/limereport/lrsettingdialog.cpp +++ b/limereport/lrsettingdialog.cpp @@ -96,7 +96,11 @@ void SettingDialog::setDesignerLanguages(QList languages, QLo if (language != currentLanguage) ui->designerLanguage->addItem(QLocale::languageToString(language)); } +#ifdef HAVE_QT4 + ui->designerLanguage->setCurrentIndex(ui->designerLanguage->findText(QLocale::languageToString(currentLanguage))); +#else ui->designerLanguage->setCurrentText(QLocale::languageToString(currentLanguage)); +#endif } } // namespace LimeReport