added seeking to import (#113)
This commit is contained in:
@@ -591,9 +591,12 @@ void TimelineWidget::dropEvent(QDropEvent* event) {
|
||||
}
|
||||
|
||||
// add clips
|
||||
long earliest_point = LONG_MAX;
|
||||
for (int i=0;i<panel_timeline->ghosts.size();i++) {
|
||||
const Ghost& g = panel_timeline->ghosts.at(i);
|
||||
|
||||
earliest_point = qMin(earliest_point, g.in);
|
||||
|
||||
Clip* c = new Clip(s);
|
||||
c->media = g.media;
|
||||
c->media_type = g.media_type;
|
||||
@@ -665,6 +668,8 @@ void TimelineWidget::dropEvent(QDropEvent* event) {
|
||||
setFocus();
|
||||
|
||||
update_ui(true);
|
||||
|
||||
if (config.enable_seek_to_import) panel_sequence_viewer->seek(earliest_point);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user