Unset the transient parent on separate chat windows

relates to #1168
This commit is contained in:
Nicolas Werner 2022-08-31 20:44:21 +02:00
parent 130e1b43fb
commit 01fd5e6b61
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 14 additions and 3 deletions

View file

@ -128,6 +128,13 @@ Nheko::logout() const
ChatPage::instance()->initiateLogout();
}
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)
{