aboutsummaryrefslogtreecommitdiff
path: root/src/session.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.cpp')
-rw-r--r--src/session.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/session.cpp b/src/session.cpp
index c87ff71..92ec5fc 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -27,6 +27,12 @@ Session::Session(QObject *parent, MainQMLAdaptor* main_gui) : QObject(parent) {
main_gui,
SLOT(setURL(QString)));
+ // QML -> MainQMLAdaptor::onCloseHandler --onCloseSignal--> session::onCloseHandler
+ QObject::connect(main_gui,
+ SIGNAL(onCloseSignal()),
+ this,
+ SLOT(onCloseHandler()));
+
this->init_vars();
}
@@ -327,8 +333,7 @@ void Session::status_dbus_replied(QDBusPendingCallWatcher *call) {
_main_gui->setConnectButtonEnabled(true);
}
-//void Session::onCloseHandler() {
-// qDebug() << "Inside Session::onCloseHandler()";
-
-// this->stop(this->getId());
-//}
+void Session::onCloseHandler() {
+ // To cleanup things here
+ this->stop(this->getId());
+}