diff options
author | trilene <trilene@runbox.com> | 2020-07-13 19:20:41 -0400 |
---|---|---|
committer | trilene <trilene@runbox.com> | 2020-07-13 19:20:41 -0400 |
commit | 09d2d937c54f575175dd645db4d401a1fd16dd4f (patch) | |
tree | 8bf0c8af885c57a644d4a7bf41dff4e908b1da95 /src | |
parent | Fix percent-encoding of TURN server URI (diff) | |
download | nheko-09d2d937c54f575175dd645db4d401a1fd16dd4f.tar.xz |
Centre PlaceCall dialog
Diffstat (limited to 'src')
-rw-r--r-- | src/ChatPage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index c83ce350..15b7c545 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -478,13 +478,14 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent) members.front().user_id == utils::localUser() ? members.back() : members.front(); auto dialog = - new dialogs::PlaceCall(callee.user_id, callee.display_name, this); + new dialogs::PlaceCall(callee.user_id, callee.display_name, MainWindow::instance()); connect(dialog, &dialogs::PlaceCall::voice, this, [this]() { callManager_.sendInvite(current_room_); }); connect(dialog, &dialogs::PlaceCall::video, this, [this]() { showNotification("Video calls not yet implemented"); }); + utils::centerWidget(dialog, MainWindow::instance()); dialog->show(); } } |