| 1197 | } |
| 1198 | |
| 1199 | void BitcoinGUI::closeEvent(QCloseEvent *event) |
| 1200 | { |
| 1201 | #ifndef Q_OS_MAC // Ignored on Mac |
| 1202 | if(clientModel && clientModel->getOptionsModel()) |
| 1203 | { |
| 1204 | if(!clientModel->getOptionsModel()->getMinimizeOnClose()) |
| 1205 | { |
| 1206 | // close rpcConsole in case it was open to make some space for the shutdown window |
| 1207 | rpcConsole->close(); |
| 1208 | |
| 1209 | Q_EMIT quitRequested(); |
| 1210 | } |
| 1211 | else |
| 1212 | { |
| 1213 | QMainWindow::showMinimized(); |
| 1214 | event->ignore(); |
| 1215 | } |
| 1216 | } |
| 1217 | #else |
| 1218 | QMainWindow::closeEvent(event); |
| 1219 | #endif |
| 1220 | } |
| 1221 | |
| 1222 | void BitcoinGUI::showEvent(QShowEvent *event) |
| 1223 | { |
nothing calls this directly
no test coverage detected