Skip to content

Commit 3dfa260

Browse files
committed
Fix crash on startup if PyQGIS fails to load
1 parent 92c8434 commit 3dfa260

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/app/qgisapp.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,9 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
740740
}
741741
else
742742
{
743-
mActionShowPythonDialog->setVisible( false );
743+
// python is disabled so get rid of the action for python console
744+
delete mActionShowPythonDialog;
745+
mActionShowPythonDialog = 0;
744746
}
745747

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

75267528
QgsMessageLog::logMessage( tr( "Python support ENABLED :-) " ), QString::null, QgsMessageLog::INFO );
75277529
}
7528-
else
7529-
{
7530-
delete mActionShowPythonDialog;
7531-
mActionShowPythonDialog = 0;
7532-
}
75337530
}
75347531

75357532
void QgisApp::checkQgisVersion()

0 commit comments

Comments
 (0)