handle file removal in ExportToZipTask
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
78ee63af38
commit
64041a84a2
5 changed files with 26 additions and 16 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue