This commit is contained in:
DanielSvoboda 2024-09-12 18:22:03 -03:00
parent 875363a8da
commit ab7aaf0524

View File

@ -179,7 +179,8 @@ void CheckUpdate::Unzip() {
// if (!fs::exists(zipFilePath.toStdString())) {
// QMessageBox::warning(this, tr("Error"),
// QString(tr("Arquivo zip não encontrado:") + "\n%1").arg(zipFilePath));
// QString(tr("Arquivo zip não encontrado:") +
// "\n%1").arg(zipFilePath));
// return;
// }
@ -187,10 +188,12 @@ void CheckUpdate::Unzip() {
// void* stream = NULL;
// mz_stream_os_create();
//if (mz_stream_os_open(stream, zipFilePath.toStdString().c_str(), MZ_OPEN_MODE_READ) != MZ_OK) {
// if (mz_stream_os_open(stream, zipFilePath.toStdString().c_str(), MZ_OPEN_MODE_READ) != MZ_OK)
// {
// QMessageBox::warning(this, tr("Error"),
// QString(tr("Erro ao abrir o arquivo zip") + "\n%1").arg(zipFilePath));
// QString(tr("Erro ao abrir o arquivo zip") +
// "\n%1").arg(zipFilePath));
// mz_stream_os_delete(&stream);
// return;
//}
@ -236,7 +239,8 @@ void CheckUpdate::Unzip() {
// QMessageBox::warning(
// this, tr("Error"),
// QString(tr("Erro ao abrir o arquivo de saída:") + "\n%1").arg(caminho_arquivo));
// QString(tr("Erro ao abrir o arquivo de saída:") +
// "\n%1").arg(caminho_arquivo));
// mz_zip_entry_close(zip_reader);
// continue;