mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Compile (KDateTime simplifications)
svn path=/trunk/KDE/kdebase/apps/; revision=692606
This commit is contained in:
parent
52b162b242
commit
2bd3a4b8c4
1 changed files with 2 additions and 3 deletions
|
@ -120,9 +120,8 @@ bool DolphinSortFilterProxyModel::lessThanGeneralPurpose(const QModelIndex &left
|
|||
return leftFileItem->isDir() && !rightFileItem->isDir();
|
||||
|
||||
case DolphinView::SortByDate: {
|
||||
KDateTime leftTime, rightTime;
|
||||
leftTime.setTime_t(leftFileItem->time(KFileItem::ModificationTime));
|
||||
rightTime.setTime_t(rightFileItem->time(KFileItem::ModificationTime));
|
||||
KDateTime leftTime = leftFileItem->time(KFileItem::ModificationTime);
|
||||
KDateTime rightTime = rightFileItem->time(KFileItem::ModificationTime);
|
||||
return leftTime > rightTime;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue