/[svn]/qsampler/trunk/src/qsamplerInstrumentForm.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerInstrumentForm.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1525 by capela, Fri Nov 23 10:51:37 2007 UTC revision 1526 by capela, Mon Nov 26 10:58:23 2007 UTC
# Line 165  void InstrumentForm::setup ( qsamplerIns Line 165  void InstrumentForm::setup ( qsamplerIns
165                  iMap = 0;                  iMap = 0;
166          const QString& sMapName = qsamplerInstrument::getMapName(iMap);          const QString& sMapName = qsamplerInstrument::getMapName(iMap);
167          if (!sMapName.isEmpty()) {          if (!sMapName.isEmpty()) {
168                  m_ui.MapComboBox->setItemText(                  m_ui.MapComboBox->setCurrentIndex(
169                          m_ui.MapComboBox->currentIndex(),                          m_ui.MapComboBox->findText(sMapName,
170                          sMapName);                                  Qt::MatchExactly | Qt::MatchCaseSensitive));
171          }          }
172    
173          // It might be no maps around...          // It might be no maps around...
174          bool bMapEnabled = (m_ui.MapComboBox->count() > 0);          bool bMapEnabled = (m_ui.MapComboBox->count() > 0);
175          m_ui.MapTextLabel->setEnabled(bMapEnabled);          m_ui.MapTextLabel->setEnabled(bMapEnabled);

Legend:
Removed from v.1525  
changed lines
  Added in v.1526

  ViewVC Help
Powered by ViewVC