[Digikam-devel] [digikam] [Bug 334633] Album metadata sorted in non-deterministic way in some cases
Gilles Caulier
caulier.gilles at gmail.com
Mon May 12 22:15:46 BST 2014
https://bugs.kde.org/show_bug.cgi?id=334633
Gilles Caulier <caulier.gilles at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Version Fixed In| |4.1.0
Resolution|--- |FIXED
--- Comment #2 from Gilles Caulier <caulier.gilles at gmail.com> ---
Git commit 64c44af9f6f2f0f172e12ca8f718b4acedb6dcc2 by Mohamed Anwer.
Committed on 12/05/2014 at 21:00.
Pushed by mohamedanwer into branch 'master'.
Fixing CCBUG:334633
M +6 -0 libs/models/albumfiltermodel.cpp
http://commits.kde.org/digikam/64c44af9f6f2f0f172e12ca8f718b4acedb6dcc2
diff --git a/libs/models/albumfiltermodel.cpp
b/libs/models/albumfiltermodel.cpp
index 9ec3a77..4ff57ce 100644
--- a/libs/models/albumfiltermodel.cpp
+++ b/libs/models/albumfiltermodel.cpp
@@ -372,6 +372,12 @@ bool AlbumFilterModel::lessThan(const QModelIndex& left,
const QModelIndex& righ
QVariant valRight = dataForCurrentSortRole(right);
AlbumSettings::StringComparisonType strComparisonType =
AlbumSettings::instance()->getStringComparisonType();
+ AlbumSettings::AlbumSortOrder role =
AlbumSettings::instance()->getAlbumSortOrder();
+
+ if((role == AlbumSettings::ByDate || role ==
AlbumSettings::ByCategory)&&(valLeft == valRight))
+ {
+ return QSortFilterProxyModel::lessThan(left, right);
+ }
if((valLeft.type() == QVariant::String) && (valRight.type() ==
QVariant::String))
{
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Digikam-devel
mailing list