Skip to content

Commit

Permalink
doc: formatted code. 🔖
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker2770 committed Dec 14, 2023
1 parent eb4dff0 commit f02f954
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3388,9 +3388,12 @@ void MainWindow::closeEvent(QCloseEvent *event)
{
QMessageBox::StandardButton button = QMessageBox::question(this, tr("Tips"), tr("Confirm quit?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No);

if(button == QMessageBox::Yes){
if (button == QMessageBox::Yes)
{
event->accept();
} else {
}
else
{
event->ignore();
}
}

0 comments on commit f02f954

Please sign in to comment.