mr
This commit is contained in:
parent
6a46aab83d
commit
fd36fd7c88
2 changed files with 8 additions and 5 deletions
|
|
@ -614,7 +614,10 @@ void ConferenceInfoCore::save() {
|
||||||
thisCopy->writeIntoModel(mConferenceInfoModel);
|
thisCopy->writeIntoModel(mConferenceInfoModel);
|
||||||
thisCopy->deleteLater();
|
thisCopy->deleteLater();
|
||||||
confSchedulerModel->setInfo(linphoneConf);
|
confSchedulerModel->setInfo(linphoneConf);
|
||||||
mCoreModelConnection->invokeToCore([this]() { setSelf(mCoreModelConnection->mCore); });
|
mCoreModelConnection->invokeToCore([this]() {
|
||||||
|
setSelf(mCoreModelConnection->mCore);
|
||||||
|
emit dataSaved();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -42,9 +42,9 @@ ConferenceInfoProxy::ConferenceInfoProxy(QObject *parent) : LimitProxy(parent) {
|
||||||
[this](QSharedPointer<ConferenceInfoCore> data) {
|
[this](QSharedPointer<ConferenceInfoCore> data) {
|
||||||
auto sortModel = dynamic_cast<SortFilterList *>(sourceModel());
|
auto sortModel = dynamic_cast<SortFilterList *>(sourceModel());
|
||||||
sortModel->invalidate(); // New conf => sort change. Filter can change if on current date.
|
sortModel->invalidate(); // New conf => sort change. Filter can change if on current date.
|
||||||
static const QMetaMethod confInfoCreatedSignal =
|
static const QMetaMethod conferenceInfoCreatedSignal =
|
||||||
QMetaMethod::fromSignal(&ConferenceInfoProxy::conferenceInfoCreated);
|
QMetaMethod::fromSignal(&ConferenceInfoProxy::conferenceInfoCreated);
|
||||||
if (isSignalConnected(confInfoCreatedSignal)) emit conferenceInfoCreated(new ConferenceInfoGui(data));
|
if (isSignalConnected(conferenceInfoCreatedSignal)) emit conferenceInfoCreated(new ConferenceInfoGui(data));
|
||||||
},
|
},
|
||||||
Qt::QueuedConnection);
|
Qt::QueuedConnection);
|
||||||
// When the date of a conference is being modified, it can be moved at another index,
|
// When the date of a conference is being modified, it can be moved at another index,
|
||||||
|
|
@ -52,9 +52,9 @@ ConferenceInfoProxy::ConferenceInfoProxy(QObject *parent) : LimitProxy(parent) {
|
||||||
connect(
|
connect(
|
||||||
mList.get(), &ConferenceInfoList::confInfoUpdated, this,
|
mList.get(), &ConferenceInfoList::confInfoUpdated, this,
|
||||||
[this](QSharedPointer<ConferenceInfoCore> data) {
|
[this](QSharedPointer<ConferenceInfoCore> data) {
|
||||||
static const QMetaMethod confInfoUpdatedSignal =
|
static const QMetaMethod conferenceInfoUpdatedSignal =
|
||||||
QMetaMethod::fromSignal(&ConferenceInfoProxy::conferenceInfoUpdated);
|
QMetaMethod::fromSignal(&ConferenceInfoProxy::conferenceInfoUpdated);
|
||||||
if (isSignalConnected(confInfoUpdatedSignal)) emit conferenceInfoUpdated(new ConferenceInfoGui(data));
|
if (isSignalConnected(conferenceInfoUpdatedSignal)) emit conferenceInfoUpdated(new ConferenceInfoGui(data));
|
||||||
},
|
},
|
||||||
Qt::QueuedConnection);
|
Qt::QueuedConnection);
|
||||||
connect(mList.get(), &ConferenceInfoList::initialized, this, &ConferenceInfoProxy::initialized);
|
connect(mList.get(), &ConferenceInfoList::initialized, this, &ConferenceInfoProxy::initialized);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue