diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-02-07 21:34:50 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-02-07 21:34:50 +0000 |
| commit | 15629f11ad6e82bcb10cd5a71d0e09684caa7965 (patch) | |
| tree | c3ffeb1186b099bfef87105c00bf8679777bbd4e /src/qmmpui/detailsdialog.cpp | |
| parent | c77a6eaa02b2b982a9440a2505305a96aecfd7af (diff) | |
| download | qmmp-15629f11ad6e82bcb10cd5a71d0e09684caa7965.tar.gz qmmp-15629f11ad6e82bcb10cd5a71d0e09684caa7965.tar.bz2 qmmp-15629f11ad6e82bcb10cd5a71d0e09684caa7965.zip | |
fixed cue tracks updating
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9703 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/detailsdialog.cpp')
| -rw-r--r-- | src/qmmpui/detailsdialog.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/qmmpui/detailsdialog.cpp b/src/qmmpui/detailsdialog.cpp index bba2d9f6a..c1ef22904 100644 --- a/src/qmmpui/detailsdialog.cpp +++ b/src/qmmpui/detailsdialog.cpp @@ -123,8 +123,15 @@ void DetailsDialog::on_buttonBox_clicked(QAbstractButton *button) } else if((cueEditor = qobject_cast<CueEditor *>(m_ui->tabWidget->currentWidget()))) { - cueEditor->save(); + //update all cue tracks + int count = cueEditor->trackCount(); + QString path = m_info.path(); + path.remove(QRegularExpression("#\\d+$")); + for(int i = 0; i < count; ++i) + m_modifiedPaths.insert(QString("%1#%2").arg(path).arg(i + 1)); m_modifiedPaths.insert(m_info.path()); + + cueEditor->save(); } } else |
