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 +++++- src/main.cpp | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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"; + } + diff --git a/src/main.cpp b/src/main.cpp index bd7abb7..b05c1e3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -98,6 +98,7 @@ int main(int argc, char *argv[]) if (debug) qDebug() << "Downloads will be saved to: " << downloadPath; // Start fbgui. fbgui gui(&app); + gui.setAttribute(Qt::WA_QuitOnClose, true); gui.show(); return app.exec(); } -- cgit v1.2.3-55-g7522