249 |
instrument.bank() == iBank && |
instrument.bank() == iBank && |
250 |
instrument.prog() == iProg) { |
instrument.prog() == iProg) { |
251 |
// Just update tree item... |
// Just update tree item... |
252 |
//pItem->update(); |
m_pInstrumentListView->updateInstrument(pInstrument); |
253 |
} else { |
} else { |
254 |
// Unmap old instance... |
// Unmap old instance... |
255 |
Instrument(iMap, iBank, iProg).unmapInstrument(); |
Instrument(iMap, iBank, iProg).unmapInstrument(); |
256 |
// Correct the position of the instrument in the model |
// Correct the position of the instrument in the model |
257 |
m_pInstrumentListView->updateInstrument(pInstrument); |
m_pInstrumentListView->resortInstrument(pInstrument); |
258 |
} |
} |
259 |
|
|
260 |
stabilizeForm(); |
stabilizeForm(); |