Merge pull request #7498 from Z1ni/compress-cancel-correctly

Qt/GameList: Cancel ISO compression when the user cancels the save dialog
This commit is contained in:
Tilka 2018-10-14 20:27:47 +01:00 committed by GitHub
commit dace56cb62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -496,6 +496,9 @@ void GameList::CompressISO(bool decompress)
.append(decompress ? QStringLiteral(".gcm") : QStringLiteral(".gcz")),
decompress ? tr("Uncompressed GC/Wii images (*.iso *.gcm)") :
tr("Compressed GC/Wii images (*.gcz)"));
if (dst_path.isEmpty())
return;
}
for (const auto& file : files)