Verified Commit 0cbae3bf authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Make sure item exists before moving to it

parent cf5566da
Pipeline #117463 passed with stage
in 5 minutes and 3 seconds
......@@ -46,8 +46,10 @@ Kirigami.Page {
property bool dragDropEnabled: true
onSelectedDateChanged: {
pathView.currentItem.item.savedYScrollPos = 0;
moveToSelected();
if (pathView.currentItem) {
pathView.currentItem.item.savedYScrollPos = 0;
moveToSelected();
}
}
Kirigami.Theme.inherit: false
......
Markdown is supported
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