Skip to content
Snippets Groups Projects
Commit c212c874 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

calloverlay: fix audio output device selection

Gitlab: #411
Change-Id: Ic963e60ce2a41272be0052b5a775c9277f150907
parent 94883f88
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,8 @@ AudioDeviceModel::reset()
int
AudioDeviceModel::getCurrentIndex() const
{
QString currentId = lrcInstance_->avModel().getInputDevice();
auto currentId = type_ == Type::Record ? lrcInstance_->avModel().getInputDevice()
: lrcInstance_->avModel().getOutputDevice();
auto resultList = match(index(0, 0), Qt::DisplayRole, QVariant(currentId));
return resultList.size() > 0 ? resultList[0].row() : 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment