Fixed #14 Search results opening the wrong note

This commit is contained in:
Scharel Clemens 2018-12-05 15:52:35 +01:00
parent b3d302acf4
commit 120464f954

View file

@ -180,7 +180,7 @@ Page {
onClicked: pageStack.push(Qt.resolvedUrl("NotePage.qml"),
{ account: nextcloudAccounts.itemAt(appSettings.currentAccount),
note: nextcloudAccounts.itemAt(appSettings.currentAccount).modelData[index]} )
note: nextcloudAccounts.itemAt(appSettings.currentAccount).model.get(index)} )
onPressAndHold: menu.open(note)
ContextMenu {