Skip to content
Snippets Groups Projects
Commit d8ca7c55 authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Ming Rui Zhang
Browse files

callview: fix hangup not toggling fullscreen mode

- regression introduced by:
  https://review.jami.net/c/ring-client-windows/+/12790

Change-Id: Ia307c2fd6ed769dc8cd4e3d1ac8d3f8ad44d090b
parent 32e1913c
Branches
No related tags found
No related merge requests found
...@@ -195,9 +195,6 @@ CallWidget::CallWidget(QWidget* parent) : ...@@ -195,9 +195,6 @@ CallWidget::CallWidget(QWidget* parent) :
connect(ui->videoView, &VideoView::toggleFullScreenClicked, connect(ui->videoView, &VideoView::toggleFullScreenClicked,
this, &CallWidget::slotToggleFullScreenClicked); this, &CallWidget::slotToggleFullScreenClicked);
connect(ui->videoView, &VideoView::terminating,
this, &CallWidget::slotVideoViewTerminating);
connect(&LRCInstance::behaviorController(), &BehaviorController::showCallView, connect(&LRCInstance::behaviorController(), &BehaviorController::showCallView,
this, &CallWidget::slotShowCallView); this, &CallWidget::slotShowCallView);
...@@ -826,7 +823,7 @@ CallWidget::slotToggleFullScreenClicked() ...@@ -826,7 +823,7 @@ CallWidget::slotToggleFullScreenClicked()
} }
void void
CallWidget::slotVideoViewTerminating(const std::string& id) CallWidget::callTerminating(const std::string& id)
{ {
auto conversation = LRCInstance::getCurrentConversation(); auto conversation = LRCInstance::getCurrentConversation();
if ( conversation.uid.empty() && if ( conversation.uid.empty() &&
...@@ -1341,6 +1338,7 @@ CallWidget::connectAccount(const std::string& accountId) ...@@ -1341,6 +1338,7 @@ CallWidget::connectAccount(const std::string& accountId)
ui->videoView->updateCall(); ui->videoView->updateCall();
setCallPanelVisibility(false); setCallPanelVisibility(false);
showConversationView(); showConversationView();
callTerminating(callId);
break; break;
} }
case lrc::api::call::Status::CONNECTED: case lrc::api::call::Status::CONNECTED:
......
...@@ -82,7 +82,6 @@ private slots: ...@@ -82,7 +82,6 @@ private slots:
void slotShowChatView(const std::string & accountId, const lrc::api::conversation::Info & convInfo); void slotShowChatView(const std::string & accountId, const lrc::api::conversation::Info & convInfo);
void slotNewTrustRequest(const std::string& accountId, const std::string& contactUri); void slotNewTrustRequest(const std::string& accountId, const std::string& contactUri);
void slotToggleFullScreenClicked(); void slotToggleFullScreenClicked();
void slotVideoViewTerminating(const std::string& callid);
void update(); void update();
void ShowContextMenu(const QPoint& pos); void ShowContextMenu(const QPoint& pos);
void Paste(); void Paste();
...@@ -105,6 +104,7 @@ private slots: ...@@ -105,6 +104,7 @@ private slots:
void slotVideoDeviceListChanged(); void slotVideoDeviceListChanged();
private: private:
void callTerminating(const std::string& callid);
void onIncomingMessage(const std::string& accountId, const std::string& convUid, void onIncomingMessage(const std::string& accountId, const std::string& convUid,
uint64_t interactionId, const lrc::api::interaction::Info& interaction); uint64_t interactionId, const lrc::api::interaction::Info& interaction);
void conversationsButtonClicked(); void conversationsButtonClicked();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment