[DEBUG #8] CLose the file after saving it when request close

This commit is contained in:
Edouard DUPIN 2014-09-15 07:27:51 +02:00
parent 05ac6a9210
commit e29aa94cc5

View File

@ -144,6 +144,8 @@ void appl::WorkerCloseFile::onCallbackSaveValidate() {
tmpWindows->displayWarningMessage("We can not save the file : <br/><i>" + m_buffer->getFileName() + "</i>"); tmpWindows->displayWarningMessage("We can not save the file : <br/><i>" + m_buffer->getFileName() + "</i>");
signalAbort.emit(); signalAbort.emit();
} else { } else {
m_buffer->destroy();
m_buffer.reset();
signalCloseDone.emit(); signalCloseDone.emit();
} }
destroy(); destroy();