Merge lp:~gerboland/unity-2d/bug-845979-fix into lp:unity-2d

Proposed by Gerry Boland
Status: Merged
Approved by: Alberto Mardegan
Approved revision: 736
Merged at revision: 736
Proposed branch: lp:~gerboland/unity-2d/bug-845979-fix
Merge into: lp:unity-2d
Diff against target: 14 lines (+3/-1)
1 file modified
panel/applets/legacytray/fdotask.cpp (+3/-1)
To merge this branch: bzr merge lp:~gerboland/unity-2d/bug-845979-fix
Reviewer Review Type Date Requested Status
Alberto Mardegan (community) Approve
Gerry Boland (community) Needs Resubmitting
MichaƂ Sawicz Pending
Review via email: mp+76764@code.launchpad.net

Description of the change

[panel] LegacyTray: A new FdoTask is created for every app that wants a tray icon, but the whitelist only allows some of them to draw a widget. When FdoTask is destroyed, only want to delete those widgets which are created. Fix bug:845979

I would appreciate any other opinions on this, as I don't really like this fix. I'm not convinced the legacytray is working at all, see bug:779382

To post a comment you must log in.
Revision history for this message
Alberto Mardegan (mardy) wrote :

Thanks Gerry! This patch is indeed correct and necessary. I'm not sure if it's enough to fix the bug, but this must absolutely go in. :-)

review: Approve
Revision history for this message
Alberto Mardegan (mardy) wrote :

ops, forgot to comment about the style: please use "if (m_widget != 0) {".

review: Needs Fixing
736. By Gerry Boland

Fix to follow style guidelines.

Revision history for this message
Gerry Boland (gerboland) wrote :

That was sloppy of me, style now fixed.

review: Needs Resubmitting
Revision history for this message
Alberto Mardegan (mardy) wrote :

Great Gerry! :-)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'panel/applets/legacytray/fdotask.cpp'
2--- panel/applets/legacytray/fdotask.cpp 2011-09-01 09:03:12 +0000
3+++ panel/applets/legacytray/fdotask.cpp 2011-09-26 08:56:24 +0000
4@@ -50,7 +50,9 @@
5 FdoTask::~FdoTask()
6 {
7 taskDeleted(m_id);
8- m_widget->deleteLater();
9+ if (m_widget != NULL) {
10+ m_widget->deleteLater();
11+ }
12 }
13
14 void FdoTask::createWidget()

Subscribers

People subscribed via source and target branches