Commit c704277b authored by Carl Schwan's avatar Carl Schwan 🚴 Committed by Claudio Cambra
Browse files

Fix crash when switching out of the contact view



This was caused because we assigned the filter header to the contact
page. We don't use the filterheader on the contact page, so just make
sure we don't do that anymore

Signed-off-by: Carl Schwan's avatarCarl Schwan <carl@carlschwan.eu>
parent 2b6afc58
Pipeline #175843 passed with stage
in 3 minutes and 1 second
......@@ -165,7 +165,7 @@ Kirigami.ApplicationWindow {
}
pageStack.replace(newViewComponent);
if(filterHeader.active) {
if (filterHeader.active && pageStack.currentItem.mode !== KalendarApplication.Contact) {
pageStack.currentItem.header = filterHeader.item;
}
......@@ -695,12 +695,6 @@ Kirigami.ApplicationWindow {
id: filterHeader
active: false
sourceComponent: Item {
anchors {
top: parent.top
left: parent.left
right: parent.right
}
readonly property bool show: header.mode === KalendarApplication.Todo || header.filter.tags.length > 0 || notifyMessage.visible
readonly property alias messageItem: notifyMessage
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment