Skip to content

Commit

Permalink
Fix error handling of .qgz files
Browse files Browse the repository at this point in the history
Until now, if a .qgz project file would fail to load, no error message
would be shown in QGIS
  • Loading branch information
wonder-sk authored and nyalldawson committed Nov 9, 2022
1 parent 5fe715a commit a58bda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -6323,7 +6323,7 @@ bool QgisApp::addProject( const QString &projectFile )
}
}

if ( !usedCustomHandler && !QgsProject::instance()->read( projectFile ) && !QgsZipUtils::isZipFile( projectFile ) )
if ( !usedCustomHandler && !QgsProject::instance()->read( projectFile ) )
{
QString backupFile = projectFile + "~";
QString loadBackupPrompt;
Expand Down

0 comments on commit a58bda9

Please sign in to comment.