3728 |
|
|
3729 |
void MainWindow::show_script_slots() { |
void MainWindow::show_script_slots() { |
3730 |
if (!file) return; |
if (!file) return; |
3731 |
|
|
3732 |
// get selected instrument |
// get selected instrument |
3733 |
std::vector<Gtk::TreeModel::Path> rows = m_TreeViewInstruments.get_selection()->get_selected_rows(); |
gig::Instrument* instrument = get_instrument(); |
|
if (rows.empty()) return; |
|
|
Gtk::TreeModel::iterator it = m_refInstrumentsTreeModel->get_iter(rows[0]); |
|
|
if (!it) return; |
|
|
Gtk::TreeModel::Row row = *it; |
|
|
gig::Instrument* instrument = row[m_InstrumentsModel.m_col_instr]; |
|
3734 |
if (!instrument) return; |
if (!instrument) return; |
3735 |
|
|
3736 |
ScriptSlots* window = new ScriptSlots; |
ScriptSlots* window = new ScriptSlots; |