]> git.sesse.net Git - kdenlive/commitdiff
Correctly use thumbs settings from new project dialog:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 23 Mar 2009 22:09:07 +0000 (22:09 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 23 Mar 2009 22:09:07 +0000 (22:09 +0000)
http://www.kdenlive.org:80/mantis/view.php?id=716

svn path=/trunk/kdenlive/; revision=3175

src/mainwindow.cpp
src/projectsettings.cpp
src/projectsettings.h

index 7ea848b84f719236eee79a070718e7dc4327f569..d5a9ab50a1508e6962fb85a0c5323bc970d7c11c 100644 (file)
@@ -1151,6 +1151,10 @@ void MainWindow::newFile(bool showProjectSettings) {
         ProjectSettings *w = new ProjectSettings(projectTracks.x(), projectTracks.y(), KdenliveSettings::defaultprojectfolder(), false, this);
         if (w->exec() != QDialog::Accepted) return;
         if (!KdenliveSettings::activatetabs()) closeCurrentDocument();
+        KdenliveSettings::setVideothumbnails(w->enableVideoThumbs());
+        m_buttonVideoThumbs->setChecked(KdenliveSettings::videothumbnails());
+        KdenliveSettings::setAudiothumbnails(w->enableAudioThumbs());
+        m_buttonAudioThumbs->setChecked(KdenliveSettings::audiothumbnails());
         profileName = w->selectedProfile();
         projectFolder = w->selectedFolder();
         projectTracks = w->tracks();
index 0d37b990d74354622a02645a208dd1fd0fbf3c44..1e5f43352b64a69b60e00d27c1f0cc15c16f322b 100644 (file)
@@ -93,6 +93,14 @@ QPoint ProjectSettings::tracks() {
     return p;
 }
 
+bool ProjectSettings::enableVideoThumbs() const {
+    return m_view.video_thumbs->isChecked();
+}
+
+bool ProjectSettings::enableAudioThumbs() const {
+    return m_view.audio_thumbs->isChecked();
+}
+
 #include "projectsettings.moc"
 
 
index 0fd0d50b6d8ec0dc1f0dde0e65bdc5c232d75179..d343cde74249f680f2996b638738ddceb76432eb 100644 (file)
@@ -34,6 +34,8 @@ public:
     QString selectedProfile() const;
     KUrl selectedFolder() const;
     QPoint tracks();
+    bool enableVideoThumbs() const;
+    bool enableAudioThumbs() const;
 
 private slots:
     void slotUpdateDisplay();