Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Kdenlive
Commits
8bb7b80e
Commit
8bb7b80e
authored
May 01, 2016
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When performing Insert with no target track, simply insert blank space
Ref: T1961
parent
fa8a7260
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
src/timeline/customtrackview.cpp
src/timeline/customtrackview.cpp
+8
-11
No files found.
src/timeline/customtrackview.cpp
View file @
8bb7b80e
...
...
@@ -7975,10 +7975,6 @@ void CustomTrackView::insertZone(TimelineMode::EditMode sceneMode, const QString
extractAudio = false;
if (m_timeline->videoTarget == -1 || m_timeline->getTrackInfo(m_timeline->videoTarget).isLocked)
extractVideo = false;
if
(
!
extractAudio
&&
!
extractVideo
)
{
emit
displayMessage
(
i18n
(
"Please select target track(s) to perform operation"
),
ErrorMessage
);
return
;
}
}
else if (m_timeline->getTrackInfo(m_selectedTrack).isLocked) {
// Cannot perform an Extract operation on a locked track
...
...
@@ -8008,16 +8004,17 @@ void CustomTrackView::insertZone(TimelineMode::EditMode sceneMode, const QString
if (KdenliveSettings::splitaudio()) {
if (extractVideo) {
info.track = m_timeline->videoTarget;
if
(
extractAudio
)
{
new
AddTimelineClipCommand
(
this
,
clipId
,
info
,
EffectsList
(),
PlaylistState
::
Original
,
true
,
false
,
addCommand
);
}
else
{
new
AddTimelineClipCommand
(
this
,
clipId
,
info
,
EffectsList
(),
PlaylistState
::
VideoOnly
,
true
,
false
,
addCommand
);
}
}
else
{
if (extractAudio) {
new AddTimelineClipCommand(this, clipId, info, EffectsList(), PlaylistState::Original, true, false, addCommand);
} else {
new AddTimelineClipCommand(this, clipId, info, EffectsList(), PlaylistState::VideoOnly, true, false, addCommand);
}
} else if (extractAudio) {
// Extract audio only
info.track = m_timeline->audioTarget;
new AddTimelineClipCommand(this, clipId, info, EffectsList(), PlaylistState::AudioOnly, true, false, addCommand);
} else {
emit displayMessage(i18n("No target track(s) selected"), InformationMessage);
}
}
else {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment