libtaskmanager: recompute active task when a task is removed

This fixes a bug in the appmenu where when you close the last open window
on a display, the appmenu doesn't get a signal that there's no longer
an active task, and continues to display a now-dead menubar instead of
clearing it.


(cherry picked from commit 463c6c2fb7)
wilder-5.24
Janet Blackquill 4 years ago committed by Nate Graham
parent 02dcde9a4a
commit 288830060d
  1. 3
      libtaskmanager/tasksmodel.cpp

@ -166,6 +166,9 @@ void TasksModel::Private::initModels()
updateActivityTaskCounts();
forceResort();
}
// the active task may have potentially changed, so signal that so that users
// will recompute it
Q_EMIT q->activeTaskChanged();
});
QObject::connect(windowTasksModel,

Loading…
Cancel
Save