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

List:       kde-commits
Subject:    koffice/kexi/widget
From:       Adam Pigg <adam () piggz ! co ! uk>
Date:       2010-09-25 9:22:37
Message-ID: 20100925092237.67D86AC857 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1179390 by piggz:

Dont crash if kexi is in 'user mode' ie, readonly.

 M  +4 -0      KexiProjectNavigator.cpp  


--- trunk/koffice/kexi/widget/KexiProjectNavigator.cpp #1179389:1179390
@@ -277,6 +277,10 @@
 
 void KexiProjectNavigator::slotSelectionChanged(const QModelIndex& i)
 {
+    if (KexiMainWindowIface::global() && KexiMainWindowIface::global()->userMode()) {
+        return;
+    }
+    
     KexiProjectModelItem *it = static_cast<KexiProjectModelItem*>(i.internalPointer());
     if (!it) {
         m_openAction->setEnabled(false);
[prev in list] [next in list] [prev in thread] [next in thread] 

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