Am 09.05.2008 um 01:14 schrieb Pavel Sanda:
AFAIU the method used in r21598 won't work for all platforms. It
seems that
Qt provides some facility for this with
QString::localeAwareCompare(); but
i already used this function for sorting environment feature.
now i looked again in code and its no more there and sorting
does not work correctly for environemnt list in czech.
Stefan could you make it work again (i think r23426 was the removal)?
Can you test this?
diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/
GuiToolbar.cpp
index 4c9921f..2222500 100644
--- a/src/frontends/qt4/GuiToolbar.cpp
+++ b/src/frontends/qt4/GuiToolbar.cpp
@@ -737,7 +737,7 @@ void GuiLayoutBox::addItemSort(docstring const &
item, docstring const & categor
if (i < end) {
// find alphabetic position
while (i != end
- && model_->item(i, 0)->text().compare(titem) < 0
+ && model_->item(i, 0)-
>text().localeAwareCompare(titem) < 0
&& (!sortedByCat || model_->item(i, 2)->text()
== qcat))
++i;
}
Stefan