Review Request: TaskManager: Pass GroupManager to LauncherItem::shouldShow
Aaron J. Seigo
aseigo at kde.org
Sat Nov 5 09:28:24 UTC 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103050/#review7963
-----------------------------------------------------------
Ship it!
Ship It!
- Aaron J. Seigo
On Nov. 4, 2011, 10:51 p.m., Craig Drummond wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103050/
> -----------------------------------------------------------
>
> (Updated Nov. 4, 2011, 10:51 p.m.)
>
>
> Review request for Plasma.
>
>
> Description
> -------
>
> Pass GroupManager instance into shouldShow - as launcher may not always be in a group.
>
> When a launcher is activated, LauncherItem::associateItemIfMatches() emits associateChanged() so that it gets hidden. This show() is connected to GroupManagerPrivate::launcherVisibilityChange(), which in turn calls "rootGroups[currentActivity][currentDesktop]->remove(launcher)" if launcher should not be shown. So now, the launcher is removed from the root group - hence is not in any group. Therefore, when GroupManagerPrivate::currentActivityChanged() calls
> LauncherItem::shouldShow(), the launcher has no group - so cannot access groupmanager.
>
>
> Diffs
> -----
>
> libs/taskmanager/groupmanager.cpp 15118f0
> libs/taskmanager/launcheritem.h df65d2f
> libs/taskmanager/launcheritem.cpp 4621860
>
> Diff: http://git.reviewboard.kde.org/r/103050/diff/diff
>
>
> Testing
> -------
>
>
> Thanks,
>
> Craig Drummond
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20111105/4f77a766/attachment.html>
More information about the Plasma-devel
mailing list