Merge lp:~aacid/qtmir/no_double_search into lp:qtmir

Proposed by Albert Astals Cid
Status: Merged
Approved by: Gerry Boland
Approved revision: 374
Merged at revision: 387
Proposed branch: lp:~aacid/qtmir/no_double_search
Merge into: lp:qtmir
Diff against target: 12 lines (+1/-1)
1 file modified
src/modules/Unity/Application/mirsurfacemanager.cpp (+1/-1)
To merge this branch: bzr merge lp:~aacid/qtmir/no_double_search
Reviewer Review Type Date Requested Status
Daniel d'Andrada (community) Abstain
Gerry Boland (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+272707@code.launchpad.net

Commit message

Don't search for the element again

Description of the change

 * Are there any related MPs required for this MP to build/function as expected?
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

To post a comment you must log in.
Revision history for this message
Gerry Boland (gerboland) wrote :

LGTM

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

This left qmlSurface empty (nullptr), causing bug 1504537.

review: Disapprove
lp:~aacid/qtmir/no_double_search updated
372. By Albert Astals Cid

Merge

373. By Albert Astals Cid

be spacing perfect

374. By Albert Astals Cid

spacing perfect i say!

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Gerry Boland (gerboland) wrote :

Yeah, works fine. Shoulda caught previous error, apologies

review: Approve
Revision history for this message
Daniel d'Andrada (dandrader) :
review: Abstain

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/modules/Unity/Application/mirsurfacemanager.cpp'
2--- src/modules/Unity/Application/mirsurfacemanager.cpp 2015-08-31 09:51:28 +0000
3+++ src/modules/Unity/Application/mirsurfacemanager.cpp 2015-10-09 15:35:18 +0000
4@@ -145,7 +145,7 @@
5
6 qmlSurface = it.value();
7
8- m_mirSurfaceToQmlSurfaceHash.remove(m_mirSurfaceToQmlSurfaceHash.key(qmlSurface));
9+ m_mirSurfaceToQmlSurfaceHash.erase(it);
10 } else {
11 qCritical() << "MirSurfaceManager::onSessionDestroyingSurface: unable to find MirSurface corresponding"
12 << "to surface=" << surface.get() << "surface.name=" << surface->name().c_str();

Subscribers

People subscribed via source and target branches