projects
/
timedsilencer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3aa534
)
Fix in profile detection
author
Christophe Dumez
<dchris@gmail.com>
Sun, 11 Jul 2010 08:19:47 +0000
(10:19 +0200)
committer
Christophe Dumez
<dchris@gmail.com>
Sun, 11 Jul 2010 08:19:47 +0000
(10:19 +0200)
profileevent.h
patch
|
blob
|
history
diff --git
a/profileevent.h
b/profileevent.h
index
4fb502d
..
cb536c7
100644
(file)
--- 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;
}