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

List:       kde-commits
Subject:    koffice/libs/widgets/resources
From:       Jan Hambrecht <jaham () gmx ! net>
Date:       2009-06-29 19:42:04
Message-ID: 1246304524.110991.19899.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 989241 by jaham:

reset the model if the column count was changed



 M  +4 -1      KoResourceModel.cpp  


--- trunk/koffice/libs/widgets/resources/KoResourceModel.cpp #989240:989241
@@ -94,7 +94,10 @@
 
 void KoResourceModel::setColumnCount( int columnCount )
 {
-    m_columnCount = columnCount;
+    if (columnCount != m_columnCount) {
+        m_columnCount = columnCount;
+        reset();
+    }
 }
 
 KoAbstractResourceServerAdapter * KoResourceModel::resourceServerAdapter()
[prev in list] [next in list] [prev in thread] [next in thread] 

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