From c7e16f805a698c780ec3f8373fd1251834604f25 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 11 Jul 2010 10:19:47 +0200 Subject: [PATCH] Fix in profile detection --- profileevent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 1.7.9.5