Merge lp:~aacid/unity/clearQueriesOnUpdateCallback into lp:unity

Proposed by Albert Astals Cid on 2012-04-03
Status: Merged
Approved by: Gord Allott on 2012-04-04
Approved revision: 2210
Merged at revision: 2218
Proposed branch: lp:~aacid/unity/clearQueriesOnUpdateCallback
Merge into: lp:unity
Diff against target: 11 lines (+1/-0)
1 file modified
UnityCore/Hud.cpp (+1/-0)
To merge this branch: bzr merge lp:~aacid/unity/clearQueriesOnUpdateCallback
Reviewer Review Type Date Requested Status
Gord Allott (community) Approve on 2012-04-04
Thomi Richards (community) 2012-04-03 Approve on 2012-04-03
Review via email: mp+100633@code.launchpad.net

Commit message

Clear queries_ in HudImpl::UpdateQueryCallback

As suggested by Ryan Lortie in https://bugs.launchpad.net/indicator-appmenu/+bug/965299

Description of the change

Clear queries_ in HudImpl::UpdateQueryCallback

As suggested by Ryan Lortie in https://bugs.launchpad.net/indicator-appmenu/+bug/965299

To post a comment you must log in.
Thomi Richards (thomir) :
review: Approve
Gord Allott (gordallott) wrote :

Seems to work, tests pass (already covered by test suite)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'UnityCore/Hud.cpp'
2--- UnityCore/Hud.cpp 2012-03-16 11:45:36 +0000
3+++ UnityCore/Hud.cpp 2012-04-03 15:39:19 +0000
4@@ -147,6 +147,7 @@
5 GVariant* query_key = g_variant_get_child_value(query, 2);
6 if (g_variant_equal(query_key_, query_key))
7 {
8+ queries_.clear();
9 GVariant* queries = g_variant_get_child_value(query, 1);
10 BuildQueries(queries);
11 g_variant_unref(queries);