mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-30 07:16:22 +00:00
fix(src/components/codecs/AbstractCodecsModel): little fixes
This commit is contained in:
parent
816a9c2af0
commit
317051fabf
2 changed files with 2 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ bool AbstractCodecsModel::moveRows (
|
||||||
// Update linphone codecs list.
|
// Update linphone codecs list.
|
||||||
list<shared_ptr<linphone::PayloadType> > codecs;
|
list<shared_ptr<linphone::PayloadType> > codecs;
|
||||||
for (const auto &map : m_codecs)
|
for (const auto &map : m_codecs)
|
||||||
codecs.push_back(map.value("__codec").value<shared_ptr<linphone::PayloadType> >());
|
codecs.push_back(getCodecFromMap(map));
|
||||||
updateCodecs(codecs);
|
updateCodecs(codecs);
|
||||||
|
|
||||||
endMoveRows();
|
endMoveRows();
|
||||||
|
|
|
||||||
|
|
@ -149,6 +149,7 @@ Column {
|
||||||
|
|
||||||
NumericField {
|
NumericField {
|
||||||
Layout.preferredWidth: CodecsViewerStyle.column.bitrateWidth
|
Layout.preferredWidth: CodecsViewerStyle.column.bitrateWidth
|
||||||
|
readOnly: !$codec.isVbr
|
||||||
text: $codec.bitrate
|
text: $codec.bitrate
|
||||||
|
|
||||||
onEditingFinished: view.model.setBitrate(index, text)
|
onEditingFinished: view.model.setBitrate(index, text)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue