kbibtex/kbibtex-sorting.patch
Raymond Wooninck 6f7d6468d0 Accepting request 213523 from home:auxsvr:branches:KDE:Extra
Update to 0.5, add kbibtex-sorting.patch to fix sorting order in columns (kde#329724) and correct a minor typo in the spec file.

OBS-URL: https://build.opensuse.org/request/show/213523
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kbibtex?expand=0&rev=14
2014-01-11 10:24:22 +00:00

13 lines
493 B
Diff

--- a/src/gui/bibtex/bibtexfilemodel.cpp
+++ b/src/gui/bibtex/bibtexfilemodel.cpp
@@ -71,7 +71,7 @@
{
const QString leftString = left.data(Qt::DisplayRole).toString().toLower();
const QString rightString = right.data(Qt::DisplayRole).toString().toLower();
- const int cmp = QString::localeAwareCompare(leftString, rightString) < 0;
+ const int cmp = QString::localeAwareCompare(leftString, rightString);
if (cmp == 0)
return left.row() < right.row();
else