| Summary: | Panel doesn't auto-hide if closing an alert window without selecting it first | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Mircea Kitsune <sonichedgehog_hyperblast00> |
| Component: | Task Manager and Icons-Only Task Manager widgets | Assignee: | Eike Hein <hein> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | hein, notmart, plasma-bugs-null, sonichedgehog_hyperblast00 |
| Priority: | NOR | ||
| Version First Reported In: | 5.9.4 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/plasma-workspace/628593db4c65560ace95759ffca5ce0920de621e | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Mircea Kitsune
2017-03-29 22:03:00 UTC
Guessing this is a panel containment bug, last time I debugged this the Task Manager applet itself was managing its attentions status correctly. I can confirm that in the exact scenario described, the task manager does not set a new status. you have to close the window *without* selecting it beforehand for it to happen Yep, I was able to reproduce it now and it's indeed in libtaskmanager. Working up a fix. Git commit 628593db4c65560ace95759ffca5ce0920de621e by Eike Hein. Committed on 31/03/2017 at 10:21. Pushed by hein into branch 'Plasma/5.8'. Fix TasksModel.anyTaskDemandsAttention not updating on window closure. Summary: Previously we updated the prop after checking for AbstractTasksModel::IsDemandingAttention on window closure, but as the window is gone, we can't actually get state for it anymore, so we always need to update. To make up for it, this patch also optimizes the prop updates to occur only once per insert/remove batch - this is a bit academic because the source models currently only insert single rows at a time, but it's good hygiene. Reviewers: #plasma, mart Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D5261 M +14 -5 libtaskmanager/tasksmodel.cpp https://commits.kde.org/plasma-workspace/628593db4c65560ace95759ffca5ce0920de621e |