From 4901d9e5982be1981a980e2bea72b76075415516 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 8 Mar 2011 13:32:16 +0100 Subject: gui quit fix. --- src/fbgui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/fbgui.cpp') diff --git a/src/fbgui.cpp b/src/fbgui.cpp index 6673d22..0a99393 100644 --- a/src/fbgui.cpp +++ b/src/fbgui.cpp @@ -16,6 +16,7 @@ bool debug = false; fbgui::fbgui(QApplication *parent) { + setAttribute(Qt::WA_QuitOnClose, true); qDebug() << "Application dir path: " << QApplication::applicationDirPath(); /* Browser init. */ QWebView* webView = new QWebView(this); @@ -38,6 +39,9 @@ fbgui::fbgui(QApplication *parent) setCentralWidget(webView); } + void fbgui::quit(){ - this->close(); + qDebug() << "fbgui::quit() call"; + } + -- cgit v1.2.3-55-g7522