Commit 7b779aa6 authored by Laurent Montel's avatar Laurent Montel 😁

Fix sorting

parent b5d8b122
......@@ -111,12 +111,12 @@ bool ReminderTreeItem::operator<( const QTreeWidgetItem &other ) const
case 1: // happening datetime
{
const ReminderTreeItem *item = static_cast<const ReminderTreeItem *>( &other );
return item->mHappening.secsTo( mHappening );
return item->mHappening < mHappening;
}
case 2: // trigger datetime
{
const ReminderTreeItem *item = static_cast<const ReminderTreeItem *>( &other );
return item->mTrigger.secsTo( mTrigger );
return item->mTrigger < mTrigger;
}
default:
return QTreeWidgetItem::operator < ( other );
......
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