Skip to content

Commit

Permalink
Fix default image duration dropping onto playlist dock.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Jan 27, 2015
1 parent ca5acfa commit 757e50e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/docks/playlistdock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ void PlaylistDock::onDropped(const QMimeData *data, int row)
foreach (QUrl url, data->urls()) {
Mlt::Producer p(MLT.profile(), url.path().toUtf8().constData());
if (p.is_valid()) {
MLT.setImageDurationFromDefault(&p);
if (row == -1)
MAIN.undoStack()->push(new Playlist::AppendCommand(m_model, MLT.XML(&p)));
else
Expand Down

0 comments on commit 757e50e

Please sign in to comment.