/[svn]/qsampler/trunk/src/qsamplerMainForm.ui.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerMainForm.ui.h

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

revision 968 by capela, Tue Dec 5 12:37:06 2006 UTC revision 969 by capela, Wed Dec 6 19:38:02 2006 UTC
# Line 852  bool qsamplerMainForm::saveSessionFile ( Line 852  bool qsamplerMainForm::saveSessionFile (
852          // MIDI instrument mapping...          // MIDI instrument mapping...
853          lscp_midi_instrument_t *pInstrs = ::lscp_list_midi_instruments(m_pClient);          lscp_midi_instrument_t *pInstrs = ::lscp_list_midi_instruments(m_pClient);
854          if (pInstrs)          if (pInstrs)
855          ts << "# " << tr("MIDI instrument mapping") << endl;                  ts << "# " << tr("MIDI instrument mapping") << endl;
856          for (int iInstr = 0; pInstrs && pInstrs[iInstr].program >= 0; iInstr++) {          for (int iInstr = 0; pInstrs && pInstrs[iInstr].program >= 0; iInstr++) {
857                  lscp_midi_instrument_info_t *pInstrInfo                  lscp_midi_instrument_info_t *pInstrInfo
858                          = ::lscp_get_midi_instrument_info(m_pClient, &pInstrs[iInstr]);                          = ::lscp_get_midi_instrument_info(m_pClient, &pInstrs[iInstr]);
# Line 882  bool qsamplerMainForm::saveSessionFile ( Line 882  bool qsamplerMainForm::saveSessionFile (
882                                  ts << " '" << pInstrInfo->name << "'";                                  ts << " '" << pInstrInfo->name << "'";
883                          ts << endl;                          ts << endl;
884                  }                  }
885                  ts << endl;                  // Try to keep it snappy :)
886          // Try to keep it snappy :)                  QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput);
         QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput);  
887          }          }
888            if (pInstrs)
889                    ts << endl;
890  #endif //  CONFIG_MIDI_INSTRUMENT  #endif //  CONFIG_MIDI_INSTRUMENT
891    
892      // Ok. we've wrote it.      // Ok. we've wrote it.

Legend:
Removed from v.968  
changed lines
  Added in v.969

  ViewVC Help
Powered by ViewVC