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

List:       kde-commits
Subject:    KDE/kdepim/kontact/src
From:       Allen Winter <winter () kde ! org>
Date:       2008-06-25 19:53:26
Message-ID: 1214423606.030921.15011.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 824443 by winterz:

crash guard for when there are no loaded plugins and one tries to
switch from the welcome page to the current plugin.
CCBUGS: 164888

still no idea why you would have no plugins


 M  +3 -1      mainwindow.cpp  


--- trunk/KDE/kdepim/kontact/src/mainwindow.cpp #824442:824443
@@ -944,7 +944,9 @@
 {
   if ( url.protocol() == "exec" ) {
     if ( url.path() == "/switch" ) {
-      mPartsStack->setCurrentIndex( mPartsStack->indexOf( mCurrentPlugin->part()->widget() ) );
+      if ( mCurrentPlugin ) {
+        mPartsStack->setCurrentIndex( mPartsStack->indexOf( mCurrentPlugin->part()->widget() ) );
+      }
     }
     if ( url.path() == "/gwwizard" ) {
       KRun::runCommand( "groupwarewizard", this );
[prev in list] [next in list] [prev in thread] [next in thread] 

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