Commit f14f9def authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fix open todo data retention



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent 7b4393d2
Pipeline #185561 passed with stage
in 3 minutes and 14 seconds
......@@ -16,6 +16,23 @@ import "labelutils.js" as LabelUtils
TreeListView {
id: root
// We need to store a copy of opened incidence data or we will lose it as we scroll the listviews.
function viewAndRetainTodoData(todoData) {
retainedTodoData = {
incidencePtr: todoData.incidencePtr,
incidenceId: todoData.incidenceId,
text: todoData.text,
color: todoData.color,
startTime: todoData.startTime,
endTime: todoData.endTime,
durationString: todoData.durationString
};
KalendarUiUtils.setUpView(retainedTodoData);
}
property var retainedTodoData: ({})
property var retainedCollectionData: ({})
property date currentDate: new Date()
property var filter
property var filterCollectionDetails
......@@ -182,7 +199,7 @@ TreeListView {
}
]
onClicked: KalendarUiUtils.setUpView(model)
onClicked: root.viewAndRetainTodoData(model)
contentItem: IncidenceMouseArea {
id: mouseArea
......
......@@ -18,22 +18,6 @@ import "labelutils.js" as LabelUtils
Kirigami.ScrollablePage {
id: root
// We need to store a copy of opened incidence data or we will lose it as we scroll the listviews.
function retainTodoData(todoData) {
retainedTodoData = {
incidencePtr: todoData.incidencePtr,
incidenceId: todoData.incidenceId,
text: todoData.text,
color: todoData.color,
startTime: todoData.startTime,
endTime: todoData.endTime,
durationString: todoData.durationString
};
KalendarUiUtils.setUpView(retainedTodoData);
}
property var retainedTodoData: ({})
property var retainedCollectionData: ({})
property var mode: Kalendar.KalendarApplication.Todo
property var filter: {
......
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