try to start an activity before setting current

This commit is contained in:
Marco Martin 2016-10-07 12:53:10 +02:00
parent 3577e59bc0
commit c2eca129af

View file

@ -109,9 +109,11 @@ ColumnLayout {
height: Math.max(label.height, label.height) height: Math.max(label.height, label.height)
onClicked: { onClicked: {
listView.currentIndex = index; listView.currentIndex = index;
activityModel.startActivity(model.id, function() {
activityModel.setCurrentActivity(model.id, function() { activityModel.setCurrentActivity(model.id, function() {
plasmoid.expanded = false; plasmoid.expanded = false;
}); });
});
} }
onPressAndHold: { onPressAndHold: {
edit.visible = true edit.visible = true