--- gigedit/trunk/src/gigedit/mainwindow.cpp 2020/08/14 11:35:58 3809 +++ gigedit/trunk/src/gigedit/mainwindow.cpp 2020/08/14 11:45:08 3810 @@ -3614,13 +3614,18 @@ { instrumentProps.signal_name_changed().clear(); + // get visual selection std::vector rows = m_TreeViewInstruments.get_selection()->get_selected_rows(); if (rows.empty()) { instrumentProps.hide(); return false; } + + // convert index of visual selection (i.e. if filtered) to index of model + Gtk::TreeModel::Path path = m_refInstrumentsModelFilter->convert_path_to_child_path(rows[0]); + //NOTE: was const_iterator before, which did not compile with GTKMM4 development branch, probably going to be fixed before final GTKMM4 release though. - Gtk::TreeModel::iterator it = m_refInstrumentsTreeModel->get_iter(rows[0]); + Gtk::TreeModel::iterator it = m_refInstrumentsTreeModel->get_iter(path); if (it) { Gtk::TreeModel::Row row = *it; gig::Instrument* instrument = row[m_InstrumentsModel.m_col_instr];