mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Check for application instance before calling init
This commit is contained in:
parent
f1f1c3d155
commit
26edd8ac8e
@ -989,7 +989,7 @@ QgsApplication::endian_t QgsApplication::endian()
|
||||
|
||||
void QgsApplication::initQgis()
|
||||
{
|
||||
if ( !ABISYM( mInitialized ) )
|
||||
if ( !ABISYM( mInitialized ) && QgsApplication::instance() )
|
||||
{
|
||||
init( ABISYM( mProfilePath ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user