Fix in profile detection
authorChristophe Dumez <dchris@gmail.com>
Sun, 11 Jul 2010 08:19:47 +0000 (10:19 +0200)
committerChristophe Dumez <dchris@gmail.com>
Sun, 11 Jul 2010 08:19:47 +0000 (10:19 +0200)
profileevent.h

index 4fb502d..cb536c7 100644 (file)
@@ -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;
   }