Map indices back to source.

This commit is contained in:
Eike Hein 2015-07-13 13:19:59 +02:00
parent 3751f69d40
commit 12ba707277

View file

@ -46,7 +46,7 @@ Item {
ScriptAction {
script: {
if (background.x != 0) {
plasmoid.nativeInterface.windowModel.requestClose(model.index);
plasmoid.nativeInterface.windowModel.requestClose(filteredWindowModel.mapRowToSource(model.index));
}
}
}
@ -83,7 +83,7 @@ Item {
onPressed: delegate.z = 10;
onClicked: {
window.hide();
plasmoid.nativeInterface.windowModel.requestActivate(model.index);
plasmoid.nativeInterface.windowModel.requestActivate(filteredWindowModel.mapRowToSource(model.index));
}
onReleased: {
delegate.z = 0;