bool MainWindow::OnClose() { if (HasDialog() || !IsRunning()) /* no shutdown dialog if XCSoar hasn't completed initialization yet (e.g. if we are in the simulator prompt) */ return SingleWindow::OnClose(); if (UIActions::CheckShutdown()) { PostQuit(); } return true; }
void SingleWindow::OnDestroy() { TopWindow::OnDestroy(); PostQuit(); }