Merge lp:~nick-dedekind/unity/lp1055995.launcher-icon-expo-terminate into lp:unity

Proposed by Nick Dedekind
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: no longer in the source branch.
Merged at revision: 2770
Proposed branch: lp:~nick-dedekind/unity/lp1055995.launcher-icon-expo-terminate
Merge into: lp:unity
Diff against target: 13 lines (+3/-0)
1 file modified
launcher/LauncherIcon.cpp (+3/-0)
To merge this branch: bzr merge lp:~nick-dedekind/unity/lp1055995.launcher-icon-expo-terminate
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
Review via email: mp+127207@code.launchpad.net

Commit message

Added launcher icon destructor disconnect from expo termination signal.

Description of the change

Added launcher icon destructor disconnect from expo termination signal.

To post a comment you must log in.
Revision history for this message
Nick Dedekind (nick-dedekind) wrote :

From the Stack-trace in the bug, it looks like the quicklist has been destroyed; in which case the LauncherIcon has been.

In theory, the following could have happened, although I had not been able to reproduce it:
1) Workspace switcher is opened
2) User right-click on icon for quicklist.
3) Expo is closed by quicklist request.
4) Aysnchronously, the icon is removed from the launcher (possibly uninstalled/user removed ?)
5) quicklist is opened.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Looks fair

review: Approve
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Please propose for merging into lp:unity/6.0 as well right away.

Revision history for this message
Nick Dedekind (nick-dedekind) wrote :
Revision history for this message
Nick Dedekind (nick-dedekind) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'launcher/LauncherIcon.cpp'
2--- launcher/LauncherIcon.cpp 2012-09-18 03:18:11 +0000
3+++ launcher/LauncherIcon.cpp 2012-10-01 09:22:24 +0000
4@@ -136,6 +136,9 @@
5 if (on_order_changed_connection.connected())
6 on_order_changed_connection.disconnect();
7
8+ if (on_expo_terminated_connection.connected())
9+ on_expo_terminated_connection.disconnect();
10+
11 if (_unity_theme)
12 {
13 _unity_theme = NULL;