mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
fix:quit application failed
when the inspector windows is show
This commit is contained in:
parent
7b434cffaf
commit
de11e573d3
|
@ -1244,6 +1244,10 @@ void MainWindow::closeEvent( QCloseEvent * ev )
|
|||
|
||||
void MainWindow::quitApp()
|
||||
{
|
||||
if( inspector && inspector->isVisible() )
|
||||
{
|
||||
inspector->hide();
|
||||
}
|
||||
commitData();
|
||||
qApp->quit();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue