From b96d8c8c300abf4eaa93b104a6f520acf11ed223 Mon Sep 17 00:00:00 2001 From: MorganDavid Date: Mon, 17 May 2021 17:42:23 +0100 Subject: [PATCH] Show user what is about to close (fix #2030) --- src/app/ui/doc_view.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/ui/doc_view.cpp b/src/app/ui/doc_view.cpp index 9766ce98a..4de9d498a 100644 --- a/src/app/ui/doc_view.cpp +++ b/src/app/ui/doc_view.cpp @@ -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(