]> git.sesse.net Git - kdenlive/blobdiff - src/mainwindow.cpp
* New configuration page to set SDL audio/video driver and audio device
[kdenlive] / src / mainwindow.cpp
index e199bf45daef5feb235e08333ce46ea6b024bae2..ba08511d88d83b455b8e3cac00afc5d327f1d1f1 100644 (file)
@@ -1119,6 +1119,7 @@ void MainWindow::slotPreferences(int page, int option) {
     // create it :
     KdenliveSettingsDialog* dialog = new KdenliveSettingsDialog(this);
     connect(dialog, SIGNAL(settingsChanged(const QString&)), this, SLOT(updateConfiguration()));
+    connect(dialog, SIGNAL(doResetProfile()), this, SLOT(resetProfiles()));
     dialog->show();
     if (page != -1) dialog->showPage(page, option);
 }
@@ -1137,6 +1138,10 @@ void MainWindow::updateConfiguration() {
 
 }
 
+void MainWindow::resetProfiles() {
+    m_monitorManager->resetProfiles(m_activeDocument->profilePath());
+}
+
 void MainWindow::slotSwitchVideoThumbs() {
     KdenliveSettings::setVideothumbnails(!KdenliveSettings::videothumbnails());
     if (m_activeTimeline) {