```
diff --git a/src/qt/modaloverlay.cpp b/src/qt/modaloverlay.cpp
index 6243a71c7..e5d499012 100644
--- a/src/qt/modaloverlay.cpp
+++ b/src/qt/modaloverlay.cpp
@@ -6,6 +6,7 @@
#include <qt/forms/ui_modaloverlay.h>
#include <qt/guiutil.h>
+#include <util/check.h>
#include <chainparams.h>
@@ -179,6 +180,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.