We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 314a927 commit 1b8d833Copy full SHA for 1b8d833
SmartTimer/widgetsettings.cpp
@@ -19,8 +19,25 @@ int elpasedTime(QTime time)
19
bool DDCheck(GlobalSettings globalSettings)
20
{
21
int currTime = elpasedTime(QTime::currentTime());
22
- if (currTime>=globalSettings.DDstart && currTime <= globalSettings.DDend )
23
- return false;
+
+ if (globalSettings.DDenabled)
24
+ {
25
+ if(globalSettings.DDstart<globalSettings.DDend)
26
27
+ if (currTime>=globalSettings.DDstart && currTime <= globalSettings.DDend )
28
+ return false;
29
+ else
30
+ return true;
31
+ }
32
33
34
+ if (currTime>=globalSettings.DDstart || currTime <= globalSettings.DDend)
35
36
37
38
39
40
else
41
return true;
42
43
}
0 commit comments