void MainWindow::OnPause() { if (!IsRunning() && HasDialog()) /* suspending before initialization has finished doesn't leave anything worth resuming, so let's just quit now */ CancelDialog(); SingleWindow::OnPause(); }
void MainWindow::on_pause() { if (!map.defined() && has_dialog()) /* suspending before initialization has finished doesn't leave anything worth resuming, so let's just quit now */ CancelDialog(); SingleWindow::on_pause(); }
bool SingleWindow::on_close() { if (!dialogs.empty()) { /* close the current dialog instead of the main window */ CancelDialog(); return true; } return TopWindow::on_close(); }