Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash on startup if PyQGIS fails to load
  • Loading branch information
wonder-sk committed Mar 18, 2015
1 parent 92c8434 commit 3dfa260
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/app/qgisapp.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 3dfa260

Please sign in to comment.