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
13 lines
493 B
Diff
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
|
|
|