summaryrefslogtreecommitdiffstats
path: root/src/fbgui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbgui.cpp')
-rw-r--r--src/fbgui.cpp6
1 files changed, 5 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";
+
}
+