handle file removal in ExportToZipTask
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@@ -480,4 +480,15 @@ void ExportToZipTask::exportZip()
|
||||
emitSucceeded();
|
||||
}
|
||||
|
||||
void ExportToZipTask::emitAborted()
|
||||
{
|
||||
QFile::remove(m_output_path);
|
||||
Task::emitAborted();
|
||||
}
|
||||
void ExportToZipTask::emitFailed(QString reason)
|
||||
{
|
||||
QFile::remove(m_output_path);
|
||||
Task::emitFailed(reason);
|
||||
}
|
||||
|
||||
} // namespace MMCZip
|
||||
Reference in New Issue
Block a user