]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiToolbar.cpp
Correct toolbar environment sorting for other locales.
[features.git] / src / frontends / qt4 / GuiToolbar.cpp
index 3851ed9a070c0888aa184766b99b5649123ea7c4..b0ce52deb103190d2b27d771817f9919afda2f5e 100644 (file)
@@ -277,7 +277,7 @@ void GuiLayoutBox::addItemSort(QString const & item, bool sorted)
 
        // Let the default one be at the beginning
        int i = 1;
-       for (setCurrentIndex(i); currentText() < item;) {
+       for (setCurrentIndex(i); currentText().localeAwareCompare(item) < 0; ) {
                // e.g. --Separator--
                if (currentText()[0].category() != QChar::Letter_Uppercase)
                        break;