X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprofilesdialog.cpp;h=8fc0b01882fb37d045bb317d681dd76a5dea6fe7;hb=4f9bd66f4c236423b440b10ae1e543d162cec0ed;hp=77b8ff84ff34799a28c078c5b6f355af88972ed5;hpb=e0fa1332f109b6455207ea701da386b2fddddf09;p=kdenlive diff --git a/src/profilesdialog.cpp b/src/profilesdialog.cpp index 77b8ff84..8fc0b018 100644 --- a/src/profilesdialog.cpp +++ b/src/profilesdialog.cpp @@ -448,7 +448,7 @@ QMap< QString, QString > ProfilesDialog::getSettingsForProfile(const QString& pr } // static -bool ProfilesDialog::matchProfile(int width, int height, double fps, double par, bool isImage, MltVideoProfile profile) +bool ProfilesDialog::matchProfile(int width, int height, double fps, double par, bool isImage, const MltVideoProfile &profile) { int profileWidth; if (isImage) { @@ -571,7 +571,8 @@ void ProfilesDialog::slotUpdateDisplay(QString currentProfile) } QLocale locale; m_selectedProfileIndex = m_view.profiles_list->currentIndex(); - if (currentProfile.isEmpty()) currentProfile = m_view.profiles_list->itemData(m_view.profiles_list->currentIndex()).toString(); + if (currentProfile.isEmpty()) + currentProfile = m_view.profiles_list->itemData(m_view.profiles_list->currentIndex()).toString(); m_isCustomProfile = currentProfile.contains('/'); m_view.button_create->setEnabled(true); m_view.button_delete->setEnabled(m_isCustomProfile);