/[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 3810 by schoenebeck, Fri Aug 14 11:45:08 2020 UTC revision 3811 by schoenebeck, Fri Aug 14 11:54:49 2020 UTC
# Line 4419  void MainWindow::on_action_duplicate_ins Line 4419  void MainWindow::on_action_duplicate_ins
4419      Glib::RefPtr<Gtk::TreeSelection> sel = m_TreeViewInstruments.get_selection();      Glib::RefPtr<Gtk::TreeSelection> sel = m_TreeViewInstruments.get_selection();
4420      std::vector<Gtk::TreeModel::Path> rows = sel->get_selected_rows();      std::vector<Gtk::TreeModel::Path> rows = sel->get_selected_rows();
4421      for (int r = 0; r < rows.size(); ++r) {      for (int r = 0; r < rows.size(); ++r) {
4422          Gtk::TreeModel::iterator it = m_refInstrumentsTreeModel->get_iter(rows[r]);          // convert index of visual selection (i.e. if filtered) to index of model
4423            Gtk::TreeModel::Path path = m_refInstrumentsModelFilter->convert_path_to_child_path(rows[r]);
4424            Gtk::TreeModel::iterator it = m_refInstrumentsTreeModel->get_iter(path);
4425          if (it) {          if (it) {
4426              Gtk::TreeModel::Row row = *it;              Gtk::TreeModel::Row row = *it;
4427              gig::Instrument* instrOrig = row[m_InstrumentsModel.m_col_instr];              gig::Instrument* instrOrig = row[m_InstrumentsModel.m_col_instr];

Legend:
Removed from v.3810  
changed lines
  Added in v.3811

  ViewVC Help
Powered by ViewVC