Remove country flags from program preferences

This commit is contained in:
Christophe Dumez
2011-01-11 21:12:18 +00:00
parent a6d1090515
commit d663c7bd3a
2 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
- BUGFIX: Do not report PeX as being disabled when DHT is
- I18N: Updated Greek, Unkrainian and Bulgarian translations
- I18N: Added Armenian translation
- I18N: Remove country flags from program preferences (language selection)
* Mon Jan 10 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.6.1
- BUGFIX: Really disable torrent addition dialog by default

View File

@@ -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();
}
}