aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/detailsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui/detailsdialog.cpp')
-rw-r--r--src/qmmpui/detailsdialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qmmpui/detailsdialog.cpp b/src/qmmpui/detailsdialog.cpp
index 8e423305b..121f79067 100644
--- a/src/qmmpui/detailsdialog.cpp
+++ b/src/qmmpui/detailsdialog.cpp
@@ -111,10 +111,13 @@ void DetailsDialog::on_buttonBox_clicked(QAbstractButton *button)
void DetailsDialog::on_tabWidget_currentChanged(int index)
{
CoverEditor *coverEditor = nullptr;
+ CueEditor *cueEditor = nullptr;
if(qobject_cast<TagEditor *>(m_ui->tabWidget->widget(index)))
m_ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(m_metaDataModel && !m_metaDataModel->isReadOnly());
else if((coverEditor = qobject_cast<CoverEditor *>(m_ui->tabWidget->currentWidget())))
m_ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(coverEditor->isEditable());
+ else if((cueEditor = qobject_cast<CueEditor *>(m_ui->tabWidget->currentWidget())))
+ m_ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(cueEditor->isEditable());
else
m_ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(false);
}
@@ -214,7 +217,7 @@ void DetailsDialog::updatePage()
if(m_metaDataModel && (m_metaDataModel->dialogHints() & MetaDataModel::IsCueEditable))
{
- CueEditor *cueEditor = new CueEditor(m_metaDataModel, this);
+ CueEditor *cueEditor = new CueEditor(m_metaDataModel, m_info, this);
m_ui->tabWidget->addTab(cueEditor, "CUE");
}