summaryrefslogtreecommitdiff
path: root/mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail.c')
-rw-r--r--mail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail.c b/mail.c
index 4f3bd3f..74c1404 100644
--- a/mail.c
+++ b/mail.c
@@ -74,10 +74,12 @@ bool cMailTimerNotification::operator< (const cMailTimerNotification &N) const
const cEvent* event = GetEvent();
const cEvent* eventOther = N.GetEvent();
if (event && eventOther) // sort event by start time and channel
+ {
if (event->StartTime() == eventOther->StartTime())
return channel->Number() < channelOther->Number();
else
return event->StartTime() < eventOther->StartTime();
+ }
return false;
}