Skip to content
Permalink
Browse files

Do not crash when zipped project is not a valid zip

Fixes #20783 - Crash when opening qgz project
  • Loading branch information
elpaso committed Dec 12, 2018
1 parent 6de0160 commit 9ca85f72c3eae2bc1fcd4fe26de2e32a21695a68
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsziputils.cpp
@@ -110,7 +110,7 @@ bool QgsZipUtils::unzip( const QString &zipFilename, const QString &dir, QString
}
else
{
QString err = QObject::tr( "Error opening zip archive: '%1'" ).arg( zip_strerror( z ) );
QString err = QObject::tr( "Error opening zip archive: '%1'" ).arg( z ? zip_strerror( z ) : zipFilename );
QgsMessageLog::logMessage( err, QStringLiteral( "QgsZipUtils" ) );
return false;
}

0 comments on commit 9ca85f7

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