Fixed crash when close main window.

This commit is contained in:
2017-03-17 12:56:39 +01:00
parent 35190b82a8
commit 16fedf3592
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -133,6 +133,12 @@ void MainWindow::showEvent(QShowEvent *evt)
}
}
void MainWindow::closeEvent(QCloseEvent *evt)
{
Context::instance().destroy();
evt->accept();
}
void MainWindow::on_actionSettings_triggered()
{
SettingsForm *settings = new SettingsForm(this);