[DEBUG #8] CLose the file after saving it when request close
This commit is contained in:
parent
05ac6a9210
commit
e29aa94cc5
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user