[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-19 12:40:34
Message-ID: 20110119124034.967D4AC8B9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1215727 by skelly:

Revert "Fix mapFromSource when called before rowCount() is called."

This needs a better implementation.

This reverts commit 3abf077646c4ca1773275f53f2d6b91f4a969379.

 M  +1 -6      kdescendantsproxymodel.cpp  


--- trunk/KDE/kdelibs/kdeui/itemviews/kdescendantsproxymodel.cpp #1215726:1215727
@@ -423,15 +423,10 @@
   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