aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/detailsdialog.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-02-06 11:55:02 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-02-06 11:55:02 +0000
commit3cd19f7132c91639fd71615c726990de36411999 (patch)
tree76c516b26bdd65bbe3c163d97909ca2c1ab4e525 /src/qmmpui/detailsdialog.cpp
parent43fae6b9581b9b596eb71a8acdfce2fd877904a7 (diff)
downloadqmmp-3cd19f7132c91639fd71615c726990de36411999.tar.gz
qmmp-3cd19f7132c91639fd71615c726990de36411999.tar.bz2
qmmp-3cd19f7132c91639fd71615c726990de36411999.zip
feature to save cue file
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9689 90c681e8-e032-0410-971d-27865f9a5e38
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");
}