]> git.sesse.net Git - kdenlive/blobdiff - src/projectsettings.cpp
Some progress on keyframe editor
[kdenlive] / src / projectsettings.cpp
index 1240ddcdc6928862c691d8c7c94051f6d14e8998..c27f5398f4cde32adf96f4f9274d3fb762e09a91 100644 (file)
@@ -27,8 +27,7 @@
 #include <QDir>
 
 ProjectSettings::ProjectSettings(int videotracks, int audiotracks, const QString projectPath, bool readOnlyTracks, QWidget * parent) :
-        QDialog(parent),
-        m_isCustomProfile(false)
+        QDialog(parent)
 {
     m_view.setupUi(this);
 
@@ -49,7 +48,7 @@ ProjectSettings::ProjectSettings(int videotracks, int audiotracks, const QString
         }
     }
 
-    buttonOk = m_view.buttonBox->button(QDialogButtonBox::Ok);
+    m_buttonOk = m_view.buttonBox->button(QDialogButtonBox::Ok);
     //buttonOk->setEnabled(false);
     m_view.audio_thumbs->setChecked(KdenliveSettings::audiothumbnails());
     m_view.video_thumbs->setChecked(KdenliveSettings::videothumbnails());
@@ -79,8 +78,8 @@ void ProjectSettings::slotUpdateDisplay()
 
 void ProjectSettings::slotUpdateButton(const QString &path)
 {
-    if (path.isEmpty()) buttonOk->setEnabled(false);
-    else buttonOk->setEnabled(true);
+    if (path.isEmpty()) m_buttonOk->setEnabled(false);
+    else m_buttonOk->setEnabled(true);
 }
 
 QString ProjectSettings::selectedProfile() const