Commit 869bc54d authored by Jure Repinc's avatar Jure Repinc
Browse files

Compile (KDateTime simplifications)

svn path=/trunk/KDE/kdebase/apps/; revision=692606
parent 935ba564
...@@ -120,9 +120,8 @@ bool DolphinSortFilterProxyModel::lessThanGeneralPurpose(const QModelIndex &left ...@@ -120,9 +120,8 @@ bool DolphinSortFilterProxyModel::lessThanGeneralPurpose(const QModelIndex &left
return leftFileItem->isDir() && !rightFileItem->isDir(); return leftFileItem->isDir() && !rightFileItem->isDir();
case DolphinView::SortByDate: { case DolphinView::SortByDate: {
KDateTime leftTime, rightTime; KDateTime leftTime = leftFileItem->time(KFileItem::ModificationTime);
leftTime.setTime_t(leftFileItem->time(KFileItem::ModificationTime)); KDateTime rightTime = rightFileItem->time(KFileItem::ModificationTime);
rightTime.setTime_t(rightFileItem->time(KFileItem::ModificationTime));
return leftTime > rightTime; return leftTime > rightTime;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment