X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectsettings.cpp;h=c27f5398f4cde32adf96f4f9274d3fb762e09a91;hb=6e140f856eeee8a9fd21797b711e93c0846d88fe;hp=94bf02fbfad72e57568506cdfac52689226a7d6a;hpb=c42a026234a44a2d766e57bc64a6ac7bbd094000;p=kdenlive diff --git a/src/projectsettings.cpp b/src/projectsettings.cpp index 94bf02fb..c27f5398 100644 --- a/src/projectsettings.cpp +++ b/src/projectsettings.cpp @@ -26,7 +26,8 @@ #include -ProjectSettings::ProjectSettings(int videotracks, int audiotracks, const QString projectPath, bool readOnlyTracks, QWidget * parent): QDialog(parent), m_isCustomProfile(false) +ProjectSettings::ProjectSettings(int videotracks, int audiotracks, const QString projectPath, bool readOnlyTracks, QWidget * parent) : + QDialog(parent) { m_view.setupUi(this); @@ -47,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()); @@ -77,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