aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2016-05-08 07:47:12 +0200
committerJean-Baptiste Mardelle <[email protected]>2016-05-08 07:47:12 +0200
commit5c23923fea17fc98017180b4b044bfb5259e2ba4 (patch)
tree41a6422dcb499fce922bc5926b79f3311a477a57
parent8804b85a419dfdb6cc160236e7de7c31bee08f7c (diff)
Disable target track when disabling split audio from settings dialog
-rw-r--r--src/mainwindow.cpp8
-rw-r--r--src/mainwindow.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 827d910..d642cd7 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -961,7 +961,7 @@ void MainWindow::setupActions()
toolbar->addAction(m_buttonAutomaticSplitAudio);
m_buttonAutomaticSplitAudio->setCheckable(true);
m_buttonAutomaticSplitAudio->setChecked(KdenliveSettings::splitaudio());
- connect(m_buttonAutomaticSplitAudio, SIGNAL(triggered()), this, SLOT(slotSwitchSplitAudio()));
+ connect(m_buttonAutomaticSplitAudio, &QAction::toggled, this, &MainWindow::slotSwitchSplitAudio);
m_buttonVideoThumbs = new QAction(KoIconUtils::themedIcon(QStringLiteral("kdenlive-show-videothumb")), i18n("Show video thumbnails"), this);
toolbar->addAction(m_buttonVideoThumbs);
@@ -1809,16 +1809,16 @@ void MainWindow::updateConfiguration()
m_buttonAudioThumbs->setChecked(KdenliveSettings::audiothumbnails());
m_buttonVideoThumbs->setChecked(KdenliveSettings::videothumbnails());
m_buttonShowMarkers->setChecked(KdenliveSettings::showmarkers());
- m_buttonAutomaticSplitAudio->setChecked(KdenliveSettings::splitaudio());
+ slotSwitchSplitAudio(KdenliveSettings::splitaudio());
// Update list of transcoding profiles
buildDynamicActions();
loadClipActions();
}
-void MainWindow::slotSwitchSplitAudio()
+void MainWindow::slotSwitchSplitAudio(bool enable)
{
- KdenliveSettings::setSplitaudio(!KdenliveSettings::splitaudio());
+ KdenliveSettings::setSplitaudio(enable);
m_buttonAutomaticSplitAudio->setChecked(KdenliveSettings::splitaudio());
if (pCore->projectManager()->currentTimeline()) {
pCore->projectManager()->currentTimeline()->updateHeaders();
diff --git a/src/mainwindow.h b/src/mainwindow.h
index c5eb1ef..4d5622d 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -274,7 +274,7 @@ private slots:
void slotEditProjectSettings();
/** @brief Turns automatic splitting of audio and video on/off. */
- void slotSwitchSplitAudio();
+ void slotSwitchSplitAudio(bool enable);
void slotSwitchMarkersComments();
void slotSwitchSnap();
void slotRenderProject();