Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
19fa3631
Commit
19fa3631
authored
Jan 18, 2010
by
Christophe Courtaut
Browse files
Fixed crashes in MediaLibrary
parent
669f124e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Gui/library/MediaCellView.cpp
View file @
19fa3631
...
...
@@ -95,7 +95,10 @@ void MediaCellView::mouseDoubleClickEvent( QMouseEvent* event )
{
if
(
(
event
->
buttons
()
|
Qt
::
LeftButton
)
==
Qt
::
LeftButton
)
{
ClipProperty
*
mp
=
new
ClipProperty
(
Library
::
getInstance
()
->
clip
(
m_uuid
),
this
);
Clip
*
clip
=
Library
::
getInstance
()
->
clip
(
m_uuid
);
if
(
clip
==
NULL
)
return
;
ClipProperty
*
mp
=
new
ClipProperty
(
clip
,
this
);
mp
->
setModal
(
true
);
mp
->
show
();
}
...
...
src/Library/Library.cpp
View file @
19fa3631
...
...
@@ -67,6 +67,8 @@ Library::clip( const QUuid& uuid )
if
(
m_medias
.
contains
(
uuid
)
)
{
Media
*
media
=
m_medias
.
value
(
uuid
);
if
(
media
->
baseClip
()
==
NULL
)
return
NULL
;
Clip
*
clip
=
new
Clip
(
media
->
baseClip
()
);
return
clip
;
}
...
...
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