diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-09-29 20:15:25 -0400 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2021-10-05 20:12:24 -0400 |
commit | 81406171a0d6b6751e9eb1777faf6ea895affcc7 (patch) | |
tree | c4b0e6aebf8e904556e0c94a4a810c985e2f906f /src/MainWindow.cpp | |
parent | Fix appimage builder url (diff) | |
download | nheko-81406171a0d6b6751e9eb1777faf6ea895affcc7.tar.xz |
QML the logout dialog
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r-- | src/MainWindow.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index bc53b906..0978fc25 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -35,7 +35,6 @@ #include "dialogs/CreateRoom.h" #include "dialogs/JoinRoom.h" #include "dialogs/LeaveRoom.h" -#include "dialogs/Logout.h" MainWindow *MainWindow::instance_ = nullptr; @@ -372,24 +371,6 @@ MainWindow::showSolidOverlayModal(QWidget *content, QFlags<Qt::AlignmentFlag> fl modal_->show(); } -void -MainWindow::openLogoutDialog() -{ - auto dialog = new dialogs::Logout(this); - connect(dialog, &dialogs::Logout::loggingOut, this, [this]() { - if (WebRTCSession::instance().state() != webrtc::State::DISCONNECTED) { - if (QMessageBox::question(this, "nheko", "A call is in progress. Log out?") != - QMessageBox::Yes) { - return; - } - WebRTCSession::instance().end(); - } - chat_page_->initiateLogout(); - }); - - showDialog(dialog); -} - bool MainWindow::hasActiveDialogs() const { |