Exemple #1
0
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;
}
Exemple #2
0
void
SingleWindow::OnDestroy()
{
  TopWindow::OnDestroy();
  PostQuit();
}