diff options
Diffstat (limited to 'src/MainWindow.cc')
-rw-r--r-- | src/MainWindow.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/MainWindow.cc b/src/MainWindow.cc index 6e2dbe2..7ae0987 100644 --- a/src/MainWindow.cc +++ b/src/MainWindow.cc @@ -193,6 +193,7 @@ void MainWindow::updateInfo(ModuleInfo &i) { } void MainWindow::updateInfo(SinkInputInfo &i) { + char t[256]; if (!i.treeRef) { SinkInfo *si = serverInfoManager->getSinkInfo(i.sink); if (!si) @@ -203,7 +204,9 @@ void MainWindow::updateInfo(SinkInputInfo &i) { } Gtk::TreeRow row = *(deviceTreeStore->get_iter(i.treeRef.get_path())); - row[deviceTreeModelColumns.name] = i.name; + snprintf(t, sizeof(t), "#%i", i.index); + row[deviceTreeModelColumns.name] = t; + row[deviceTreeModelColumns.description] = i.name; row[deviceTreeModelColumns.index] = i.index; row[deviceTreeModelColumns.type] = ROW_TYPE_SINK_INPUT; |