diff --git a/sources/editor/ui/dynamictextfieldeditor.cpp b/sources/editor/ui/dynamictextfieldeditor.cpp index 15c3872e3..72cd666ba 100644 --- a/sources/editor/ui/dynamictextfieldeditor.cpp +++ b/sources/editor/ui/dynamictextfieldeditor.cpp @@ -226,15 +226,9 @@ void DynamicTextFieldEditor::fillInfoComboBox() else { strl = QETInformation::elementInfoKeys(); } - //We use a QMap because the keys of the map are sorted, then no matter the current local, - //the value of the combo box are always alphabetically sorted - QMap info_map; - for(const QString& str : strl) - info_map.insert(QETInformation::translatedInfoKey(str), str); - - - for (const QString& key : info_map.keys()) - ui -> m_elmt_info_cb -> addItem(key, info_map.value(key)); + for (int i=0; i m_elmt_info_cb -> addItem(strl[i], QETInformation::translatedInfoKey(strl[i])); + } } void DynamicTextFieldEditor::on_m_x_sb_editingFinished()