summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-07-13 19:20:41 -0400
committertrilene <trilene@runbox.com>2020-07-13 19:20:41 -0400
commit09d2d937c54f575175dd645db4d401a1fd16dd4f (patch)
tree8bf0c8af885c57a644d4a7bf41dff4e908b1da95 /src
parentFix percent-encoding of TURN server URI (diff)
downloadnheko-09d2d937c54f575175dd645db4d401a1fd16dd4f.tar.xz
Centre PlaceCall dialog
Diffstat (limited to 'src')
-rw-r--r--src/ChatPage.cpp3
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();
                         }
                 }