Merge lp:~verzegnassi-stefano/ubuntu-docviewer-app/fix-1483218 into lp:ubuntu-docviewer-app

Proposed by Stefano Verzegnassi
Status: Merged
Approved by: Stefano Verzegnassi
Approved revision: 315
Merged at revision: 322
Proposed branch: lp:~verzegnassi-stefano/ubuntu-docviewer-app/fix-1483218
Merge into: lp:ubuntu-docviewer-app
Diff against target: 11 lines (+1/-0)
1 file modified
src/plugin/file-qml-plugin/documentmodel.cpp (+1/-0)
To merge this branch: bzr merge lp:~verzegnassi-stefano/ubuntu-docviewer-app/fix-1483218
Reviewer Review Type Date Requested Status
Roman Shchekin Approve
Jenkins Bot continuous-integration Approve
Review via email: mp+288689@code.launchpad.net

Commit message

emit DocumentModel::dataChanged()
Sometimes the UI was not notified about changes in model entries (e.g. file size still equals to zero after file has been successfully copied)

Description of the change

emit DocumentModel::dataChanged()
Sometimes the UI was not notified about changes in model entries (e.g. file size still equals to zero after file has been successfully copied)

To post a comment you must log in.
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Roman Shchekin (mrqtros) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/plugin/file-qml-plugin/documentmodel.cpp'
2--- src/plugin/file-qml-plugin/documentmodel.cpp 2015-09-19 15:40:22 +0000
3+++ src/plugin/file-qml-plugin/documentmodel.cpp 2016-03-10 19:51:54 +0000
4@@ -65,6 +65,7 @@
5 for (int i=0; i<m_docs.length(); i++) {
6 if (m_docs.at(i).path == path) {
7 m_docs[i] = createEntry(path);
8+ Q_EMIT dataChanged(index(i, 0), index(i, 0));
9
10 break;
11 }

Subscribers

People subscribed via source and target branches