[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/itemviews
From: Stephen Kelly <steveire () gmail ! com>
Date: 2011-01-16 23:33:00
Message-ID: 20110116233300.E2DFAAC8B5 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1214937 by skelly:
Fix mapFromSource when called before rowCount() is called.
M +6 -1 kdescendantsproxymodel.cpp
--- trunk/KDE/kdelibs/kdeui/itemviews/kdescendantsproxymodel.cpp #1214936:1214937
@@ -423,10 +423,15 @@
if (!sourceModel())
return QModelIndex();
+ if (d->m_mapping.isEmpty() && sourceModel()->hasChildren())
+ {
+ Q_ASSERT(sourceModel()->rowCount() > 0);
+ const_cast<KDescendantsProxyModelPrivate*>(d)->synchronousMappingRefresh();
+ }
+
if (d->m_mapping.isEmpty())
return QModelIndex();
-
{
// TODO: Consider a parent Mapping to speed this up.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic