diff --git a/olive.pro.user b/olive.pro.user index 012579420..d05b2e03b 100644 --- a/olive.pro.user +++ b/olive.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/panels/effectcontrols.cpp b/panels/effectcontrols.cpp index c211d2fd9..0f465395d 100644 --- a/panels/effectcontrols.cpp +++ b/panels/effectcontrols.cpp @@ -77,6 +77,7 @@ void EffectControls::clear_effects() { } ui->vcontainer->setVisible(false); ui->acontainer->setVisible(false); + selected_clips.clear(); } void EffectControls::deselect_all_effects(QWidget* sender) { @@ -163,10 +164,14 @@ bool EffectControls::is_focused() { if (this->hasFocus()) return true; for (int i=0;ieffects.size();j++) { - if (c->effects.at(j)->container->is_focused()) { - return true; + if (c != NULL) { + for (int j=0;jeffects.size();j++) { + if (c->effects.at(j)->container->is_focused()) { + return true; + } } + } else { + qDebug() << "[WARNING] Tried to check focus of a NULL clip"; } } return false; diff --git a/panels/project.cpp b/panels/project.cpp index b262a0bab..ae26c1a70 100644 --- a/panels/project.cpp +++ b/panels/project.cpp @@ -174,6 +174,9 @@ void Project::process_file_list(QStringList& files) { // heuristic to determine whether file is part of an image sequence int lastcharindex = file.lastIndexOf(".")-1; + if (lastcharindex == -2) { + lastcharindex = file.length() - 1; + } if (file[lastcharindex].isDigit()) { bool is_img_sequence = false; QString sequence_test(file); diff --git a/ui/sourcetable.cpp b/ui/sourcetable.cpp index 6082d1066..5f5f318dc 100644 --- a/ui/sourcetable.cpp +++ b/ui/sourcetable.cpp @@ -9,6 +9,7 @@ #include #include +#include SourceTable::SourceTable(QWidget* parent) : QTreeWidget(parent) { sortByColumn(0, Qt::AscendingOrder); @@ -51,6 +52,7 @@ void SourceTable::dropEvent(QDropEvent* event) { if (!urls.isEmpty()) { QStringList paths; for (int i=0;iprocess_file_list(paths);