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,8 +109,10 @@ ColumnLayout {
height: Math.max(label.height, label.height) height: Math.max(label.height, label.height)
onClicked: { onClicked: {
listView.currentIndex = index; listView.currentIndex = index;
activityModel.setCurrentActivity(model.id, function() { activityModel.startActivity(model.id, function() {
plasmoid.expanded = false; activityModel.setCurrentActivity(model.id, function() {
plasmoid.expanded = false;
});
}); });
} }
onPressAndHold: { onPressAndHold: {