/[svn]/gigedit/trunk/src/gigedit/mainwindow.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/mainwindow.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3820 by schoenebeck, Fri Aug 14 12:29:01 2020 UTC revision 3821 by schoenebeck, Tue Sep 1 16:45:06 2020 UTC
# Line 3976  void MainWindow::on_instrument_selection Line 3976  void MainWindow::on_instrument_selection
3976              find(children.begin(), children.end(), item);              find(children.begin(), children.end(), item);
3977          if (it != children.end()) {          if (it != children.end()) {
3978              int index = it - children.begin();              int index = it - children.begin();
3979              m_TreeViewInstruments.get_selection()->select(Gtk::TreePath(ToString(index)));  
3980                // convert index of model to index of visual presentation (i.e. if filtered)
3981                Gtk::TreeModel::Path path = m_refInstrumentsModelFilter->convert_child_path_to_path(Gtk::TreePath(ToString(index)));
3982    
3983                if (path)
3984                    m_TreeViewInstruments.get_selection()->select(path);
3985                else
3986                    m_TreeViewInstruments.get_selection()->unselect_all();
3987    
3988              m_RegionChooser.set_instrument(file->GetInstrument(index));              m_RegionChooser.set_instrument(file->GetInstrument(index));
3989          }          }

Legend:
Removed from v.3820  
changed lines
  Added in v.3821

  ViewVC Help
Powered by ViewVC