summary refs log tree commit diff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-09-24 21:32:06 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-10-09 17:14:33 -0400
commite9ed12e27bcbc4f4a256e8e3840c1022fd14872e (patch)
tree8dc718d860600c88e9f9d36650d438f849f2fd47 /src/MainWindow.cpp
parentMerge pull request #743 from LorenDB/qmlLogout (diff)
downloadnheko-e9ed12e27bcbc4f4a256e8e3840c1022fd14872e.tar.xz
QML the join room dialog
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r--src/MainWindow.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp

index 0978fc25..777b5b22 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp
@@ -33,7 +33,6 @@ #include "ui/SnackBar.h" #include "dialogs/CreateRoom.h" -#include "dialogs/JoinRoom.h" #include "dialogs/LeaveRoom.h" MainWindow *MainWindow::instance_ = nullptr; @@ -325,18 +324,6 @@ MainWindow::showOverlayProgressBar() } void -MainWindow::openJoinRoomDialog(std::function<void(const QString &room_id)> callback) -{ - auto dialog = new dialogs::JoinRoom(this); - connect(dialog, &dialogs::JoinRoom::joinRoom, this, [callback](const QString &room) { - if (!room.isEmpty()) - callback(room); - }); - - showDialog(dialog); -} - -void MainWindow::openCreateRoomDialog( std::function<void(const mtx::requests::CreateRoom &request)> callback) {