From fa52097bc2b2ee623fd59541d300376062e035d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Thu, 22 Feb 2018 17:00:27 -0300 Subject: [PATCH] MainWindowHybrid: Close app if something goes wrong with item MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/ui/MainWindowHybrid.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/MainWindowHybrid.qml b/src/ui/MainWindowHybrid.qml index 408ea37a9..8f58d2253 100644 --- a/src/ui/MainWindowHybrid.qml +++ b/src/ui/MainWindowHybrid.qml @@ -22,7 +22,12 @@ Item { } function attemptWindowClose() { - mainWindowInner.item.attemptWindowClose() + try { + mainWindowInner.item.attemptWindowClose() + } + finally { + controller.reallyClose() + } } function showMessage(message) { -- 2.22.0