From 32c158bc61f778ae464e93178a66f8e95b6af896 Mon Sep 17 00:00:00 2001 From: Nils Fenner Date: Thu, 4 Aug 2016 09:52:49 +0200 Subject: [PATCH] fix(gui): don't quit application before last event Quitting the application kills the event loop. So any event past that will not be handled. Probably causes the "BAD!" entries in log. --- src/widget/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index dfe8a328f..329ed52c8 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -583,8 +583,8 @@ void Widget::closeEvent(QCloseEvent *event) } saveWindowGeometry(); saveSplitterGeometry(); - qApp->exit(0); QWidget::closeEvent(event); + qApp->quit(); } }