--- qsampler/trunk/src/qsamplerInstrumentList.cpp 2010/03/13 12:44:15 2065 +++ qsampler/trunk/src/qsamplerInstrumentList.cpp 2010/03/14 16:35:48 2068 @@ -41,7 +41,7 @@ InstrumentListModel::InstrumentListModel ( QObject *pParent ) : QAbstractItemModel(pParent), m_iMidiMap(LSCP_MIDI_MAP_ALL) { - QAbstractItemModel::reset(); +// QAbstractItemModel::reset(); } InstrumentListModel::~InstrumentListModel (void) @@ -79,7 +79,6 @@ { if (!index.isValid()) return QVariant(); - const Instrument *pInstr = static_cast (index.internalPointer()); @@ -130,7 +129,6 @@ InstrumentMap::const_iterator itMap = m_instruments.find(m_iMidiMap); if (itMap != m_instruments.constEnd()) { const InstrumentList& list = *itMap; - // resolve instrument in that map if (row < list.size()) pInstr = list.at(row); } @@ -399,7 +397,8 @@ { m_pListModel->beginReset(); m_pListModel->updateInstrument(pInstrument); - m_pListModel->endReset();} + m_pListModel->endReset(); +} // Refreshener.