Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
0cebca85
Commit
0cebca85
authored
Jul 27, 2021
by
David Jarvie
Browse files
Don't display a 'time to' for alarms whose trigger time has passed
parent
6ace88b9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/resources/resourcedatamodelbase.cpp
View file @
0cebca85
...
...
@@ -770,7 +770,7 @@ QString ResourceDataModelBase::timeToAlarmText(const DateTime& dateTime)
return
i18nc
(
"@info n days"
,
"%1d"
,
days
);
}
int
mins
=
(
now
.
secsTo
(
dateTime
.
effectiveKDateTime
())
+
59
)
/
60
;
if
(
mins
<
0
)
if
(
mins
<
=
0
)
return
QString
();
char
minutes
[
3
]
=
"00"
;
minutes
[
0
]
=
(
mins
%
60
)
/
10
+
'0'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment