summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-08 13:32:16 +0100
committerJonathan Bauer2011-03-08 13:32:16 +0100
commit4901d9e5982be1981a980e2bea72b76075415516 (patch)
tree5c9cfb10f47b104849e420041cecd24ef0adc6fc
parentremoved debug stuff, room for improvement for setting/parsing dir name... (diff)
downloadfbgui-4901d9e5982be1981a980e2bea72b76075415516.tar.gz
fbgui-4901d9e5982be1981a980e2bea72b76075415516.tar.xz
fbgui-4901d9e5982be1981a980e2bea72b76075415516.zip
gui quit fix.
-rw-r--r--src/fbgui.cpp6
-rw-r--r--src/main.cpp1
2 files changed, 6 insertions, 1 deletions
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();
}