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 13, 2018
1 parent 14e59ee commit 1bc9234c498e21e2d02bab430426e03690c306a0
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 1bc9234

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