From c2eca129af9fe94d486c92195131c941ef9134dc Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 7 Oct 2016 12:53:10 +0200 Subject: [PATCH] try to start an activity before setting current --- applets/activities/contents/ui/main.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/applets/activities/contents/ui/main.qml b/applets/activities/contents/ui/main.qml index 74026824..5b602160 100644 --- a/applets/activities/contents/ui/main.qml +++ b/applets/activities/contents/ui/main.qml @@ -109,8 +109,10 @@ ColumnLayout { height: Math.max(label.height, label.height) onClicked: { listView.currentIndex = index; - activityModel.setCurrentActivity(model.id, function() { - plasmoid.expanded = false; + activityModel.startActivity(model.id, function() { + activityModel.setCurrentActivity(model.id, function() { + plasmoid.expanded = false; + }); }); } onPressAndHold: {