Commit 463c6c2f authored by Jan Blackquill's avatar Jan Blackquill 🌈 Committed by Nate Graham
Browse files

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.
parent 8f28a249
Pipeline #151056 canceled with stage
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment