165 |
|
|
166 |
// It can be a brand new channel, remember? |
// It can be a brand new channel, remember? |
167 |
const bool bNew = (m_pChannel->channelID() < 0); |
const bool bNew = (m_pChannel->channelID() < 0); |
168 |
setWindowTitle(QSAMPLER_TITLE ": " + m_pChannel->channelName()); |
setWindowTitle(m_pChannel->channelName()); |
169 |
|
|
170 |
// Check if we're up and connected. |
// Check if we're up and connected. |
171 |
MainForm *pMainForm = MainForm::getInstance(); |
MainForm *pMainForm = MainForm::getInstance(); |
461 |
// Check if there's any pending changes... |
// Check if there's any pending changes... |
462 |
if (m_iDirtyCount > 0) { |
if (m_iDirtyCount > 0) { |
463 |
switch (QMessageBox::warning(this, |
switch (QMessageBox::warning(this, |
464 |
QSAMPLER_TITLE ": " + tr("Warning"), |
tr("Warning"), |
465 |
tr("Some channel settings have been changed.\n\n" |
tr("Some channel settings have been changed.\n\n" |
466 |
"Do you want to apply the changes?"), |
"Do you want to apply the changes?"), |
467 |
QMessageBox::Apply | |
QMessageBox::Apply | |
510 |
const QString& filter = filters.join(";;"); |
const QString& filter = filters.join(";;"); |
511 |
|
|
512 |
QString sInstrumentFile = QFileDialog::getOpenFileName(this, |
QString sInstrumentFile = QFileDialog::getOpenFileName(this, |
513 |
QSAMPLER_TITLE ": " + tr("Instrument files"), // Caption. |
tr("Instrument files"), // Caption. |
514 |
pOptions->sInstrumentDir, // Start here. |
pOptions->sInstrumentDir, // Start here. |
515 |
filter // File filter. |
filter // File filter. |
516 |
); |
); |