From 09d2d937c54f575175dd645db4d401a1fd16dd4f Mon Sep 17 00:00:00 2001 From: trilene Date: Mon, 13 Jul 2020 19:20:41 -0400 Subject: [PATCH] Centre PlaceCall dialog --- src/ChatPage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, 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(); } }