summary refs log tree commit diff
path: root/src/ui/NhekoGlobalObject.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-08-31 20:44:21 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-08-31 20:44:21 +0200
commit01fd5e6b61828ec07f5be710523f0a6f0bb20a1a (patch)
tree2de1ce99f6ed17a858d460749f61b2399ef5c834 /src/ui/NhekoGlobalObject.cpp
parentFix empty widgets still being shown (diff)
downloadnheko-01fd5e6b61828ec07f5be710523f0a6f0bb20a1a.tar.xz
Unset the transient parent on separate chat windows
relates to #1168
Diffstat (limited to 'src/ui/NhekoGlobalObject.cpp')
-rw-r--r--src/ui/NhekoGlobalObject.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/NhekoGlobalObject.cpp b/src/ui/NhekoGlobalObject.cpp

index 5891f8cd..ce094205 100644 --- a/src/ui/NhekoGlobalObject.cpp +++ b/src/ui/NhekoGlobalObject.cpp
@@ -129,6 +129,13 @@ Nheko::logout() const } void +Nheko::setTransientParent(QWindow *window, QWindow *parentWindow) const +{ + if (window) + window->setTransientParent(parentWindow); +} + +void Nheko::createRoom(QString name, QString topic, QString aliasLocalpart, bool isEncrypted, int preset) { mtx::requests::CreateRoom req;