Show user what is about to close (fix #2030)

This commit is contained in:
MorganDavid 2021-05-17 17:42:23 +01:00 committed by David Capello
parent de768a020d
commit b96d8c8c30

View File

@ -284,6 +284,9 @@ bool DocView::onCloseView(Workspace* workspace, bool quitting)
{
// see if the sprite has changes
while (m_document->isModified()) {
// Show user what they are about to close
ctx->setActiveView(this);
// ask what want to do the user with the changes in the sprite
int ret = Alert::show(
fmt::format(