Merge lp:~nick-dedekind/qmenumodel/loadExtAttributes-dataChanged into lp:qmenumodel

Proposed by Nick Dedekind
Status: Merged
Approved by: Michał Sawicz
Approved revision: 99
Merged at revision: 99
Proposed branch: lp:~nick-dedekind/qmenumodel/loadExtAttributes-dataChanged
Merge into: lp:qmenumodel
Diff against target: 12 lines (+2/-0)
1 file modified
libqmenumodel/src/unitymenumodel.cpp (+2/-0)
To merge this branch: bzr merge lp:~nick-dedekind/qmenumodel/loadExtAttributes-dataChanged
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Michał Sawicz Approve
Review via email: mp+198549@code.launchpad.net

Commit message

Added dataChange to loadExtendedAttributes function.

Description of the change

Added dataChange to loadExtendedAttributes function to ensure the UI extended attributes update.

To post a comment you must log in.
Revision history for this message
Michał Sawicz (saviq) wrote :

Yes, good.

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libqmenumodel/src/unitymenumodel.cpp'
2--- libqmenumodel/src/unitymenumodel.cpp 2013-10-14 16:31:14 +0000
3+++ libqmenumodel/src/unitymenumodel.cpp 2013-12-11 12:12:51 +0000
4@@ -652,6 +652,8 @@
5
6 g_object_set_qdata_full (G_OBJECT (item), unity_menu_item_extended_attributes_quark (),
7 extendedAttrs, freeExtendedAttrs);
8+
9+ Q_EMIT dataChanged(index(position, 0), index(position, 0), QVector<int>() << ExtendedAttributesRole);
10 }
11
12 QVariant UnityMenuModel::get(int row, const QByteArray &role)

Subscribers

People subscribed via source and target branches