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

List:       kde-commits
Subject:    KDE/kdelibs/nepomuk/core
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2010-09-08 7:51:05
Message-ID: 20100908075105.E129FAC857 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1172903 by trueg:

Never directly access the main model in ResourceData. Instead go through
mainModel(), thus, properly locking the initialization. This fixes crashes
at Nepomuk startup.

BUG: 246110


 M  +1 -1      resourcedata.cpp  


--- trunk/KDE/kdelibs/nepomuk/core/resourcedata.cpp #1172902:1172903
@@ -52,7 +52,7 @@
 
 using namespace Soprano;
 
-#define MAINMODEL m_rm->resourceFilterModel
+#define MAINMODEL static_cast<ResourceFilterModel*>(m_rm->m_manager->mainModel())
 
 
 Nepomuk::ResourceData::ResourceData( const QUrl& uri, const QUrl& kickOffUri, const \
QUrl& type, ResourceManagerPrivate* rm )


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

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