From 436153807fdddfceb01cd88f49de995e5622341e Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 12 Mar 2020 12:12:52 +0100 Subject: [PATCH] fixes #0004281: Close Documant Recovery [skip ci] --- src/Gui/DocumentRecovery.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Gui/DocumentRecovery.cpp b/src/Gui/DocumentRecovery.cpp index 7ce272563b..bbc9c1d0de 100644 --- a/src/Gui/DocumentRecovery.cpp +++ b/src/Gui/DocumentRecovery.cpp @@ -229,10 +229,9 @@ QString DocumentRecovery::createProjectFile(const QString& documentXml) void DocumentRecovery::closeEvent(QCloseEvent* e) { - Q_D(DocumentRecovery); - - if (!d->recoveryInfo.isEmpty()) - e->ignore(); + // Do not disable the X button in the title bar + // #0004281: Close Documant Recovery + e->accept(); } void DocumentRecovery::accept()