Skip to content

Commit

Permalink
move connection to change project title later in init
Browse files Browse the repository at this point in the history
this fixes a crash when running QGIS with snapping enabled in ini file
  • Loading branch information
3nids authored and nyalldawson committed Oct 3, 2018
1 parent e5e1b9a commit de1a546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -774,8 +774,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
mMapCanvas->setCanvasColor( QColor( myRed, myGreen, myBlue ) ); mMapCanvas->setCanvasColor( QColor( myRed, myGreen, myBlue ) );
endProfile(); endProfile();


connect( QgsProject::instance(), &QgsProject::isDirtyChanged, this, [ = ] { setTitleBarText_( *this ); } );

// what type of project to auto-open // what type of project to auto-open
mProjOpen = settings.value( QStringLiteral( "qgis/projOpenAtLaunch" ), 0 ).toInt(); mProjOpen = settings.value( QStringLiteral( "qgis/projOpenAtLaunch" ), 0 ).toInt();


Expand Down Expand Up @@ -1094,6 +1092,8 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh


QgsMessageLog::logMessage( tr( "QGIS starting…" ), QString(), Qgis::Info ); QgsMessageLog::logMessage( tr( "QGIS starting…" ), QString(), Qgis::Info );


connect( QgsProject::instance(), &QgsProject::isDirtyChanged, this, [ = ] { setTitleBarText_( *this ); } );

// set QGIS specific srs validation // set QGIS specific srs validation
connect( this, &QgisApp::customCrsValidation, connect( this, &QgisApp::customCrsValidation,
this, &QgisApp::validateCrs ); this, &QgisApp::validateCrs );
Expand Down

0 comments on commit de1a546

Please sign in to comment.