Skip to content

Commit

Permalink
Fix resetting the VUI QuickView after some filter events.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Aug 11, 2014
1 parent 6884fba commit 79113d1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/docks/filtersdock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ void FiltersDock::onProducerOpened()
onModelChanged();
ui->addAudioButton->setEnabled(MLT.isClip());
ui->addVideoButton->setEnabled(MLT.isClip());
MLT.videoQuickView()->setSource(QUrl());
}

void FiltersDock::setProducer(Mlt::Producer *producer)
Expand Down Expand Up @@ -223,10 +222,7 @@ void FiltersDock::on_removeButton_clicked()
QModelIndex index = ui->listView->currentIndex();
if (index.isValid()) {
m_model.remove(index.row());
delete ui->scrollArea->widget();
ui->scrollArea->setWidget(0);
m_quickObject = 0;
MLT.videoQuickView()->setSource(QUrl());
loadWidgetsPanel(0);
}
}

Expand Down Expand Up @@ -273,6 +269,7 @@ void FiltersDock::loadWidgetsPanel(QWidget *widget)
m_quickObject = 0;
delete ui->scrollArea->widget();
ui->scrollArea->setWidget(widget);
MLT.videoQuickView()->setSource(QUrl());
}

void FiltersDock::loadQuickPanel(const QmlMetadata* metadata, int row)
Expand Down

0 comments on commit 79113d1

Please sign in to comment.