[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kopete/dev-4.2/kopete/contactlist
From:       Gustavo P. Boiko <gustavo.boiko () kdemail ! net>
Date:       2009-01-15 20:32:10
Message-ID: 1232051530.011474.19252.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 911655 by boiko:

Instead of reseting the proxy model, just invalidate it when the viewing mode changes.
This way we preserve the expanding/collapsing of the items being shown


 M  +1 -1      contactlistproxymodel.cpp  


--- branches/work/kopete/dev-4.2/kopete/contactlist/contactlistproxymodel.cpp #911654:911655
@@ -45,7 +45,7 @@
 void ContactListProxyModel::slotConfigChanged()
 {
 	kDebug(14001) << "config changed";
-	reset();
+	invalidate();
 }
 
 bool ContactListProxyModel::filterAcceptsRow ( int sourceRow, const QModelIndex & sourceParent ) const
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic