diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 53141719f..7fa776f3c 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -1208,9 +1208,15 @@ void BitcoinGUI::closeEvent(QCloseEvent *event) QApplication::quit(); } + else + { + QMainWindow::showMinimized(); + event->ignore(); + } } -#endif +#else QMainWindow::closeEvent(event); +#endif } void BitcoinGUI::showEvent(QShowEvent *event)