diff --git a/app/core.cpp b/app/core.cpp index a665099c9..8b9859c9b 100644 --- a/app/core.cpp +++ b/app/core.cpp @@ -383,7 +383,7 @@ void Core::DialogExportShow() } #ifdef USE_OTIO -void Core::DialogImportOTIOShow(QList sequences) { +void Core::DialogImportOTIOShow(const QList& sequences) { Project* active_project = GetActiveProject(); OTIOPropertiesDialog opd(sequences, active_project); opd.exec(); diff --git a/app/core.h b/app/core.h index 99018f377..5b439a8f0 100644 --- a/app/core.h +++ b/app/core.h @@ -402,7 +402,7 @@ public slots: * @brief Show OTIO import dialog */ #ifdef USE_OTIO - void DialogImportOTIOShow(QList sequences); + void DialogImportOTIOShow(const QList& sequences); #endif /** diff --git a/app/dialog/otioproperties/otiopropertiesdialog.cpp b/app/dialog/otioproperties/otiopropertiesdialog.cpp index 72797a9fa..9c5794a02 100644 --- a/app/dialog/otioproperties/otiopropertiesdialog.cpp +++ b/app/dialog/otioproperties/otiopropertiesdialog.cpp @@ -27,13 +27,14 @@ namespace olive { -OTIOPropertiesDialog::OTIOPropertiesDialog(QList sequences, Project* active_project, QWidget* parent) : +OTIOPropertiesDialog::OTIOPropertiesDialog(const QList& sequences, Project* active_project, QWidget* parent) + : QDialog(parent), sequences_(sequences) { QVBoxLayout* layout = new QVBoxLayout(this); - layout->addWidget(new QLabel("Change settings for each OTIO sequence to be loaded")); + layout->addWidget(new QLabel(tr("Change settings for each OTIO sequence to be loaded"))); table_ = new QTreeWidget(); table_->setColumnCount(2); diff --git a/app/dialog/otioproperties/otiopropertiesdialog.h b/app/dialog/otioproperties/otiopropertiesdialog.h index 541e016b9..ad66bbd9f 100644 --- a/app/dialog/otioproperties/otiopropertiesdialog.h +++ b/app/dialog/otioproperties/otiopropertiesdialog.h @@ -20,12 +20,12 @@ namespace olive { class OTIOPropertiesDialog : public QDialog { Q_OBJECT public: - OTIOPropertiesDialog(QList sequences, Project* active_project, QWidget* parent = nullptr); + OTIOPropertiesDialog(const QList& sequences, Project* active_project, QWidget* parent = nullptr); private: QTreeWidget* table_; - QList sequences_; + const QList sequences_; private slots: /**