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

List:       kde-commits
Subject:    KDE/kdevplatform/plugins/projectmanagerview
From:       Patrick Spendrin <ps_ml () gmx ! de>
Date:       2009-07-09 23:28:39
Message-ID: 1247182119.952161.28659.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 994047 by sengels:

fix Qt 4.4 issue for amilcar ;-)

 M  +5 -0      projectbuildsetmodel.cpp  


--- trunk/KDE/kdevplatform/plugins/projectmanagerview/projectbuildsetmodel.cpp #994046:994047
@@ -194,7 +194,12 @@
 {
     for( int i = m_items.count() - 1; i >= 0; i-- )
     {
+#if QT_VERSION < 0x040500
         if( m_items.at(i).itemPath().startsWith(project->name()+"/") )
+#else
+        if( !m_items.at(i).itemPath().isEmpty() && 
+             m_items.at(i).itemPath().first() == QString(project->name()+"/") )
+#endif
         {
             beginRemoveRows( QModelIndex(), i, i );
             m_items.removeAt(i);
[prev in list] [next in list] [prev in thread] [next in thread] 

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