Skip to content

Commit

Permalink
fix:quit application failed
Browse files Browse the repository at this point in the history
when the inspector windows is show
  • Loading branch information
xiaoyifang committed May 23, 2022
1 parent 7b434cf commit de11e57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1244,6 +1244,10 @@ void MainWindow::closeEvent( QCloseEvent * ev )

void MainWindow::quitApp()
{
if( inspector && inspector->isVisible() )
{
inspector->hide();
}
commitData();
qApp->quit();
}
Expand Down

0 comments on commit de11e57

Please sign in to comment.