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.
wilder-5.25
Janet Blackquill 4 years ago committed by Nate Graham
parent 8f28a24906
commit 463c6c2fb7
  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