From 833750513b295d33c9ea9cc4a867fb5b65d1f760 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 11 Jan 2011 21:10:11 +0000 Subject: [PATCH] Remove country flags from program preferences --- src/preferences/options_imp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preferences/options_imp.cpp b/src/preferences/options_imp.cpp index 354341eed..416dff98e 100644 --- a/src/preferences/options_imp.cpp +++ b/src/preferences/options_imp.cpp @@ -229,9 +229,9 @@ void options_imp::initializeLanguageCombo() QString localeStr = lang_file.mid(12); // remove "qbittorrent_" localeStr.chop(3); // Remove ".qm" QLocale locale(localeStr); - const QString country = locale.name().split("_").last().toLower(); + //const QString country = locale.name().split("_").last().toLower(); QString language_name = QLocale::languageToString(locale.language()); - comboI18n->addItem(QIcon(":/Icons/flags/"+country+".png"), language_name, locale.name()); + comboI18n->addItem(/*QIcon(":/Icons/flags/"+country+".png"), */language_name, locale.name()); qDebug() << "Supported locale:" << locale.name(); } }