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
Kalendar
Commits
a89324e4
Commit
a89324e4
authored
Sep 01, 2022
by
Claudio Cambra
Browse files
Fix clicking on notifications not always correctly switching to correct view
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
85d9893f
Pipeline
#225650
passed with stage
in 2 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/main.qml
View file @
a89324e4
...
...
@@ -379,7 +379,10 @@ Kirigami.ApplicationWindow {
}
function
onOpenIncidence
(
incidenceData
,
occurrenceDate
)
{
if
(
pageStack
.
currentItem
.
mode
===
KalendarApplication
.
Todo
&&
incidenceData
.
incidenceType
!==
IncidenceWrapper
.
TypeTodo
)
{
// Switch to an event view if the current view is not compatible with the current incidence type
if
((
pageStack
.
currentItem
.
mode
!==
KalendarApplication
.
Todo
&&
pageStack
.
currentItem
.
mode
!==
KalendarApplication
.
Event
)
||
(
pageStack
.
currentItem
.
mode
===
KalendarApplication
.
Todo
&&
incidenceData
.
incidenceType
!==
IncidenceWrapper
.
TypeTodo
))
{
Kirigami
.
Settings
.
isMobile
?
dayViewAction
.
trigger
()
:
weekViewAction
.
trigger
();
}
...
...
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