Skip to content

Commit a276f01

Browse files
committedApr 14, 2013
Fix for #7598, CRS info on the lower right corner does not show anymore
- Should not affect fix for #7532
1 parent dcf8d86 commit a276f01

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -711,19 +711,16 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
711711
// supposedly all actions have been added, now register them to the shortcut manager
712712
QgsShortcutsManager::instance()->registerAllChildrenActions( this );
713713

714-
// request notification of FileOpen events (double clicking a file icon in Mac OS X Finder)
715-
QgsApplication::setFileOpenEventReceiver( this );
716-
717714
QgsProviderRegistry::instance()->registerGuis( this );
718715

719716
// update windows
720717
qApp->processEvents();
721718

722-
// check if a project has been loaded already via drag/drop or filesystem loading
723-
if ( !QgsProject::instance() )
724-
{
725-
fileNewBlank(); // prepare empty project
726-
}
719+
fileNewBlank(); // prepare empty project, also skips any default templates from loading
720+
721+
// request notification of FileOpen events (double clicking a file icon in Mac OS X Finder)
722+
// should come after fileNewBlank to ensure project is properly set up to receive any data source files
723+
QgsApplication::setFileOpenEventReceiver( this );
727724

728725
} // QgisApp ctor
729726

0 commit comments

Comments
 (0)
Please sign in to comment.