Fix crash on first run and click new project

parent 3b1a28a8
......@@ -106,8 +106,14 @@ ProfileWidget::~ProfileWidget()
{
}
void ProfileWidget::loadProfile(const QString &profile)
void ProfileWidget::loadProfile(QString profile)
{
if (profile.isEmpty()) {
profile = KdenliveSettings::current_profile();
if (profile.isEmpty()) {
profile = QStringLiteral("dv_pal");
}
}
m_standard->blockSignals(true);
m_standard->clear();
m_list4K.clear();
......
......@@ -41,7 +41,7 @@ class ProfileWidget : public QWidget
public:
explicit ProfileWidget(QWidget* parent = 0);
~ProfileWidget();
void loadProfile(const QString &profile);
void loadProfile(QString profile);
const QString selectedProfile() const;
private:
/** @brief currently selected's profile path */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment