| 296 | } |
| 297 | |
| 298 | void MainFrame::closeEvent(QCloseEvent *event) |
| 299 | { |
| 300 | writeSettings(); |
| 301 | |
| 302 | if (_mainWindow->able_to_close()){ |
| 303 | |
| 304 | #ifdef _WIN32 |
| 305 | if (_parentNativeWidget != NULL){ |
| 306 | _parentNativeWidget->SetChildWidget(NULL); |
| 307 | setVisible(false); |
| 308 | _parentNativeWidget->Show(false); |
| 309 | } |
| 310 | #endif |
| 311 | |
| 312 | event->accept(); |
| 313 | } |
| 314 | else{ |
| 315 | event->ignore(); |
| 316 | } |
| 317 | } |
| 318 | |
| 319 | void MainFrame::unfreezing() |
| 320 | { |
nothing calls this directly
no test coverage detected