Skip to content

Commit ff68635

Browse files
committed
Fix crash on startup when python support is not present
Adds a safety check for mActionShowPythonDialog before accessing it
1 parent 71d0b57 commit ff68635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
738738
// enable Python in the Plugin Manager and pass the PythonUtils to it
739739
mPluginManager->setPythonUtils( mPythonUtils );
740740
}
741-
else
741+
else if ( mActionShowPythonDialog )
742742
{
743743
mActionShowPythonDialog->setVisible( false );
744744
}

0 commit comments

Comments
 (0)