Fix error message when double-cliking the 'empty project' action on the welcome screen

This commit is contained in:
Nyall Dawson 2019-06-24 08:29:20 +10:00
parent 9ab1b3e1ed
commit 5c751c44e9

View File

@ -138,7 +138,8 @@ void QgsWelcomePage::templateProjectItemActivated( const QModelIndex &index )
{
if ( index.data( QgsProjectListItemDelegate::NativePathRole ).isNull() )
QgisApp::instance()->newProject();
QgisApp::instance()->fileNewFromTemplate( index.data( QgsProjectListItemDelegate::NativePathRole ).toString() );
else
QgisApp::instance()->fileNewFromTemplate( index.data( QgsProjectListItemDelegate::NativePathRole ).toString() );
}
void QgsWelcomePage::versionInfoReceived()