556 |
if (piChannelIDs == NULL) { |
if (piChannelIDs == NULL) { |
557 |
appendMessagesClient("lscp_list_channels"); |
appendMessagesClient("lscp_list_channels"); |
558 |
appendMessagesError(tr("Could not get current list of channels.\n\nSorry.")); |
appendMessagesError(tr("Could not get current list of channels.\n\nSorry.")); |
559 |
} |
} else { |
560 |
|
// Try to (re)create each channel. |
561 |
// Try to (re)create each channel. |
m_pWorkspace->setUpdatesEnabled(false); |
562 |
m_pWorkspace->setUpdatesEnabled(false); |
for (int iChannel = 0; piChannelIDs[iChannel] >= 0; iChannel++) { |
563 |
for (int iChannel = 0; piChannelIDs[iChannel] >= 0; iChannel++) { |
createChannelStrip(new qsamplerChannel(this, piChannelIDs[iChannel])); |
564 |
createChannelStrip(new qsamplerChannel(this, piChannelIDs[iChannel])); |
QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput); |
565 |
QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput); |
} |
566 |
} |
m_pWorkspace->setUpdatesEnabled(true); |
567 |
m_pWorkspace->setUpdatesEnabled(true); |
} |
568 |
|
|
569 |
// Save as default session directory. |
// Save as default session directory. |
570 |
if (m_pOptions) |
if (m_pOptions) |