Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit aeb417ff authored by Laurent Montel's avatar Laurent Montel 😁

Remove duplicate

parent 5bfc1815
......@@ -115,7 +115,7 @@ void DictionaryComboBox::setCurrentByDictionary(const QString &dictionary)
void DictionaryComboBox::reloadCombo()
addItem(i18n("AutoDetect Language"), QStringLiteral("autodetect"));
addItem(i18n("AutoDetect Language"), autoDeleteString());
Sonnet::Speller *speller = new Sonnet::Speller();
QMap<QString, QString> dictionaries = speller->availableDictionaries();
QMapIterator<QString, QString> i(dictionaries);
......@@ -126,4 +126,9 @@ void DictionaryComboBox::reloadCombo()
delete speller;
QString DictionaryComboBox::autoDeleteString() const
return QStringLiteral("autodetect");
#include "moc_dictionarycombobox.cpp"
......@@ -94,6 +94,8 @@ public:
void setCurrentByDictionary(const QString &dictionary);
QString autoDeleteString() const;
* @em Emitted whenever the current dictionary changes. Either
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment