From: Christophe Dumez Date: Sun, 11 Jul 2010 08:19:47 +0000 (+0200) Subject: Fix in profile detection X-Git-Url: https://vcs.maemo.org/git/?p=timedsilencer;a=commitdiff_plain;h=c7e16f805a698c780ec3f8373fd1251834604f25 Fix in profile detection --- diff --git a/profileevent.h b/profileevent.h index 4fb502d..cb536c7 100644 --- a/profileevent.h +++ b/profileevent.h @@ -82,10 +82,10 @@ public: bool in_silent_mode = false; QTime ctime = QTime::currentTime(); if(from_time < to_time) { - in_silent_mode = (ctime > from_time && ctime < to_time); + in_silent_mode = (ctime >= from_time && ctime < to_time); } else { // to_time is the next day - in_silent_mode = (ctime > from_time || (ctime < from_time && ctime < to_time)); + in_silent_mode = (ctime >= from_time || (ctime < from_time && ctime < to_time)); } return in_silent_mode; }