diff --git a/src/widgets/mainwindow.cpp b/src/widgets/mainwindow.cpp
index eeddfe1..1290856 100644
--- a/src/widgets/mainwindow.cpp
+++ b/src/widgets/mainwindow.cpp
@@ -60,3 +60,8 @@ void MainWindow::on_actionLogout_triggered()
//Close this widget
close();
}
+
+void MainWindow::on_actionExit_triggered()
+{
+ QCoreApplication::exit(0);
+}
diff --git a/src/widgets/mainwindow.h b/src/widgets/mainwindow.h
index ff2654b..5039f4a 100644
--- a/src/widgets/mainwindow.h
+++ b/src/widgets/mainwindow.h
@@ -44,6 +44,8 @@ private slots:
void on_actionLogout_triggered();
+ void on_actionExit_triggered();
+
private:
Ui::MainWindow *ui;
ConversationsListWidget *mConversationsListWidget;
diff --git a/src/widgets/mainwindow.ui b/src/widgets/mainwindow.ui
index 445787f..cb6de54 100644
--- a/src/widgets/mainwindow.ui
+++ b/src/widgets/mainwindow.ui
@@ -63,6 +63,13 @@
+
+
@@ -82,6 +89,11 @@
Logout
+
+
+ Exit
+
+