Commit 317051fa authored by Ronan Abhamon's avatar Ronan Abhamon

fix(src/components/codecs/AbstractCodecsModel): little fixes

parent 816a9c2a
...@@ -143,7 +143,7 @@ bool AbstractCodecsModel::moveRows ( ...@@ -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 { ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment