summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-10-09 20:57:38 +0000
committerGitHub <noreply@github.com>2021-10-09 20:57:38 +0000
commit7eb9071b50e540fdcde4d132bdf76825da4518e4 (patch)
tree4736f7d46480146f5ddb41bd1cc598aaca05534f /src/ui
parentMerge pull request #752 from Thulinma/devicelistEdits (diff)
parentmake lint (diff)
downloadnheko-7eb9071b50e540fdcde4d132bdf76825da4518e4.tar.xz
Merge pull request #743 from LorenDB/qmlLogout
QML the logout dialog
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/NhekoGlobalObject.cpp5
-rw-r--r--src/ui/NhekoGlobalObject.h4
2 files changed, 6 insertions, 3 deletions
diff --git a/src/ui/NhekoGlobalObject.cpp b/src/ui/NhekoGlobalObject.cpp

index d6824996..d687a308 100644 --- a/src/ui/NhekoGlobalObject.cpp +++ b/src/ui/NhekoGlobalObject.cpp
@@ -14,6 +14,7 @@ #include "MainWindow.h" #include "UserSettingsPage.h" #include "Utils.h" +#include "WebRTCSession.h" Nheko::Nheko() { @@ -83,9 +84,9 @@ Nheko::showUserSettingsPage() const } void -Nheko::openLogoutDialog() const +Nheko::logout() const { - MainWindow::instance()->openLogoutDialog(); + ChatPage::instance()->initiateLogout(); } void diff --git a/src/ui/NhekoGlobalObject.h b/src/ui/NhekoGlobalObject.h
index aa8435d1..64aad941 100644 --- a/src/ui/NhekoGlobalObject.h +++ b/src/ui/NhekoGlobalObject.h
@@ -48,7 +48,7 @@ public: Q_INVOKABLE void openLink(QString link) const; Q_INVOKABLE void setStatusMessage(QString msg) const; Q_INVOKABLE void showUserSettingsPage() const; - Q_INVOKABLE void openLogoutDialog() const; + Q_INVOKABLE void logout() const; Q_INVOKABLE void openCreateRoomDialog() const; Q_INVOKABLE void openJoinRoomDialog() const; Q_INVOKABLE void reparent(QWindow *win) const; @@ -60,6 +60,8 @@ signals: void colorsChanged(); void profileChanged(); + void openLogoutDialog(); + private: QScopedPointer<UserProfile> currentUser_; };