Skip to content
Permalink
Browse files

Fix crash on startup if PyQGIS fails to load

  • Loading branch information
wonder-sk committed Mar 18, 2015
1 parent 92c8434 commit 3dfa26051aad664234d3dba5ba7754fae00e4ac2
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/app/qgisapp.cpp
@@ -740,7 +740,9 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
}
else
{
mActionShowPythonDialog->setVisible( false );
// python is disabled so get rid of the action for python console
delete mActionShowPythonDialog;
mActionShowPythonDialog = 0;
}

mSplash->showMessage( tr( "Initializing file filters" ), Qt::AlignHCenter | Qt::AlignBottom );
@@ -7525,11 +7527,6 @@ void QgisApp::loadPythonSupport()

QgsMessageLog::logMessage( tr( "Python support ENABLED :-) " ), QString::null, QgsMessageLog::INFO );
}
else
{
delete mActionShowPythonDialog;
mActionShowPythonDialog = 0;
}
}

void QgisApp::checkQgisVersion()

0 comments on commit 3dfa260

Please sign in to comment.
You can’t perform that action at this time.