mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 06:08:07 +00:00
feat(src/components/call/CallModel): display calls window only when a call is accepted or is outgoing
This commit is contained in:
parent
17877a8583
commit
9304442bb1
2 changed files with 5 additions and 1 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include <QDateTime>
|
||||
#include <QtDebug>
|
||||
|
||||
#include "../../app/App.hpp"
|
||||
#include "../../app/Paths.hpp"
|
||||
#include "../../utils.hpp"
|
||||
#include "../core/CoreManager.hpp"
|
||||
|
|
@ -101,6 +102,7 @@ void CallModel::accept () {
|
|||
params->enableVideo(false);
|
||||
setRecordFile(params);
|
||||
|
||||
App::getInstance()->getCallsWindow()->show();
|
||||
core->acceptCallWithParams(m_linphone_call, params);
|
||||
}
|
||||
|
||||
|
|
@ -110,6 +112,7 @@ void CallModel::acceptWithVideo () {
|
|||
params->enableVideo(true);
|
||||
setRecordFile(params);
|
||||
|
||||
App::getInstance()->getCallsWindow()->show();
|
||||
core->acceptCallWithParams(m_linphone_call, params);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -147,7 +147,8 @@ bool CallsListModel::removeRows (int row, int count, const QModelIndex &parent)
|
|||
// -----------------------------------------------------------------------------
|
||||
|
||||
void CallsListModel::addCall (const shared_ptr<linphone::Call> &linphone_call) {
|
||||
App::getInstance()->getCallsWindow()->show();
|
||||
if (linphone_call->getDir() == linphone::CallDirOutgoing)
|
||||
App::getInstance()->getCallsWindow()->show();
|
||||
|
||||
CallModel *call = new CallModel(linphone_call);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue