diff options
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r-- | src/mainwindow.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc index ff1d690..a25e416 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -197,6 +197,12 @@ void MainWindow::rebuildSinkCombo() { row[deviceColumns.index] = i->first; row[deviceColumns.name] = i->second->description.c_str(); } + + /* Force a redraw of the dropdown combo due to the model change. */ + for (std::map<uint32_t, SinkInputWidget*>::iterator i = sinkInputWidgets.begin(); i != sinkInputWidgets.end(); ++i) { + SinkInputWidget* w = i->second; + w->setSinkIndex(w->sinkIndex()); + } } void MainWindow::updateSink(const pa_sink_info &info) { @@ -364,6 +370,12 @@ void MainWindow::rebuildSourceCombo() { row[deviceColumns.index] = i->first; row[deviceColumns.name] = i->second->description.c_str(); } + + /* Force a redraw of the dropdown combo due to the model change. */ + for (std::map<uint32_t, SourceOutputWidget*>::iterator i = sourceOutputWidgets.begin(); i != sourceOutputWidgets.end(); ++i) { + SourceOutputWidget* w = i->second; + w->setSourceIndex(w->sourceIndex()); + } } void MainWindow::updateSource(const pa_source_info &info) { |