697 |
// clear the samples and instruments tree views |
// clear the samples and instruments tree views |
698 |
m_refTreeModel->clear(); |
m_refTreeModel->clear(); |
699 |
m_refSamplesTreeModel->clear(); |
m_refSamplesTreeModel->clear(); |
700 |
|
m_refScriptsTreeModel->clear(); |
701 |
// remove all entries from "Instrument" menu |
// remove all entries from "Instrument" menu |
702 |
while (!instrument_menu->get_children().empty()) { |
while (!instrument_menu->get_children().empty()) { |
703 |
remove_instrument_from_menu(0); |
remove_instrument_from_menu(0); |
712 |
// clear the samples and instruments tree views |
// clear the samples and instruments tree views |
713 |
m_refTreeModel->clear(); |
m_refTreeModel->clear(); |
714 |
m_refSamplesTreeModel->clear(); |
m_refSamplesTreeModel->clear(); |
715 |
|
m_refScriptsTreeModel->clear(); |
716 |
// remove all entries from "Instrument" menu |
// remove all entries from "Instrument" menu |
717 |
while (!instrument_menu->get_children().empty()) { |
while (!instrument_menu->get_children().empty()) { |
718 |
remove_instrument_from_menu(0); |
remove_instrument_from_menu(0); |