Skip to content
Permalink
Browse files

move connection to change project title later in init

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 de1a546328df940b732d1306de104e1e0ab8cfbf
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
@@ -774,8 +774,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
mMapCanvas->setCanvasColor( QColor( myRed, myGreen, myBlue ) );
endProfile();

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

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

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

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

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

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

0 comments on commit de1a546

Please sign in to comment.
You can’t perform that action at this time.