┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinfileitemdelegate.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-08-01 16:07:42 +0000
committerPeter Penz <[email protected]>2009-08-01 16:07:42 +0000
commit0706af30c0e08c105e86d49f310f9f0e0f13c3e6 (patch)
tree4f474b732470cd6eb09c420b4ed2305ea9f634ee /src/dolphinfileitemdelegate.cpp
parent34b6b300506d2e8e842dcdf7de0325d5156c0ba4 (diff)
Assure that the revision control observer receives the correct revision states of subtree-items.
svn path=/trunk/KDE/kdebase/apps/; revision=1005646
Diffstat (limited to 'src/dolphinfileitemdelegate.cpp')
-rw-r--r--src/dolphinfileitemdelegate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphinfileitemdelegate.cpp b/src/dolphinfileitemdelegate.cpp
index ddd4435a7..d0c84a6bb 100644
--- a/src/dolphinfileitemdelegate.cpp
+++ b/src/dolphinfileitemdelegate.cpp
@@ -63,7 +63,7 @@ void DolphinFileItemDelegate::paint(QPainter* painter,
// The currently shown items are under revision control. Show the current revision
// state by adding an emblem.
const QModelIndex dirIndex = proxyModel->mapToSource(index);
- const QModelIndex revisionIndex = dolphinModel->index(dirIndex.row(), DolphinModel::Revision);
+ const QModelIndex revisionIndex = dolphinModel->index(dirIndex.row(), DolphinModel::Revision, dirIndex.parent());
const QVariant data = dolphinModel->data(revisionIndex, Qt::DecorationRole);
const RevisionControlPlugin::RevisionState state = static_cast<RevisionControlPlugin::RevisionState>(data.toInt());