From 0706af30c0e08c105e86d49f310f9f0e0f13c3e6 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 1 Aug 2009 16:07:42 +0000 Subject: Assure that the revision control observer receives the correct revision states of subtree-items. svn path=/trunk/KDE/kdebase/apps/; revision=1005646 --- src/dolphinfileitemdelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dolphinfileitemdelegate.cpp') 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(data.toInt()); -- cgit v1.3