* Unshow the critical error. This has to happen when a critical * error is shown and we uninitialise the window system, i.e. * remove all the windows. */
| 276 | * remove all the windows. |
| 277 | */ |
| 278 | void UnshowCriticalError() |
| 279 | { |
| 280 | ErrmsgWindow *w = dynamic_cast<ErrmsgWindow *>(FindWindowById(WC_ERRMSG, 0)); |
| 281 | if (_window_system_initialized && w != nullptr) { |
| 282 | if (w->IsCritical()) _error_list.push_front(*w); |
| 283 | _window_system_initialized = false; |
| 284 | w->Close(); |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | /** |
| 289 | * Display an error message in a window. |
no test coverage detected