Commit 62cf0613 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Correctly update "apply" button on monitor change.

Related to #598
parent 5406eba0
Pipeline #160723 passed with stage
in 5 minutes and 56 seconds
......@@ -483,7 +483,7 @@ void KdenliveSettingsDialog::initSdlPage(bool gpuAllowed)
connect(m_configSdl.reload_blackmagic, &QAbstractButton::clicked, this, &KdenliveSettingsDialog::slotReloadBlackMagic);
// m_configSdl.kcfg_openglmonitors->setHidden(true);
connect(m_configSdl.fullscreen_monitor, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
&KdenliveSettingsDialog::slotSetFullscreenMonitor);
&KdenliveSettingsDialog::slotDialogModified);
connect(m_configSdl.kcfg_audio_driver, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
&KdenliveSettingsDialog::slotCheckAlsaDriver);
connect(m_configSdl.kcfg_audio_backend, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
......@@ -1004,6 +1004,10 @@ void KdenliveSettingsDialog::updateSettings()
KdenliveSettings::setDefaultprojectfolder(m_configProject.projecturl->url().toLocalFile());
}
if (m_configSdl.fullscreen_monitor->currentData().toString() != KdenliveSettings::fullscreen_monitor()) {
KdenliveSettings::setFullscreen_monitor(m_configSdl.fullscreen_monitor->currentData().toString());
}
if (m_configEnv.capturefolderurl->url().toLocalFile() != KdenliveSettings::capturefolder()) {
KdenliveSettings::setCapturefolder(m_configEnv.capturefolderurl->url().toLocalFile());
updateCapturePath = true;
......@@ -1250,12 +1254,6 @@ void KdenliveSettingsDialog::updateSettings()
settingsGroup.writeEntry("dialogSize", QVariant(size()));
}
void KdenliveSettingsDialog::slotSetFullscreenMonitor()
{
QString value = m_configSdl.fullscreen_monitor->currentData().toString();
KdenliveSettings::setFullscreen_monitor(value);
}
void KdenliveSettingsDialog::slotCheckAlsaDriver()
{
QString value = m_configSdl.kcfg_audio_driver->currentData().toString();
......
......@@ -68,7 +68,6 @@ private slots:
void slotEditAudioApplication();
void slotReadAudioDevices();
void slotUpdateGrabRegionStatus();
void slotSetFullscreenMonitor();
void slotCheckAlsaDriver();
void slotCheckAudioBackend();
void slotAddTranscode();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment