```
diff --git a/src/qt/modaloverlay.cpp b/src/qt/modaloverlay.cpp
index e5f32fe12..c5686cc0d 100644
--- a/src/qt/modaloverlay.cpp
+++ b/src/qt/modaloverlay.cpp
@@ -7,6 +7,7 @@
#include <chainparams.h>
#include <qt/guiutil.h>
+#include <util/check.h>
#include <QPropertyAnimation>
#include <QResizeEvent>
@@ -197,6 +198,7 @@ void ModalOverlay::showHide(bool hide, bool userRequested) {
}
void ModalOverlay::closeClicked() {
+ CHECK_NONFATAL(false);
showHide(true);
userClosed = true;
}
```
Running `bitcoin-qt` and clicking Hide in the modal causes the exception dialog to appear.