Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
9f6df32d
Commit
9f6df32d
authored
Mar 07, 2010
by
Hugo Beauzee-Luyssen
Browse files
MediaCellView: Correcting memory leak.
parent
ba3b2fdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Gui/library/MediaCellView.cpp
View file @
9f6df32d
...
...
@@ -27,7 +27,6 @@
#include
"ClipProperty.h"
#include
<QTime>
#include
<QDebug>
MediaCellView
::
MediaCellView
(
const
QUuid
&
uuid
,
QWidget
*
parent
)
:
QWidget
(
parent
),
m_ui
(
new
Ui
::
MediaCellView
),
m_uuid
(
uuid
)
...
...
@@ -35,7 +34,8 @@ MediaCellView::MediaCellView( const QUuid& uuid, QWidget *parent ) :
m_ui
->
setupUi
(
this
);
setFocusPolicy
(
Qt
::
ClickFocus
);
setAutoFillBackground
(
true
);
connect
(
m_ui
->
delLabel
,
SIGNAL
(
clicked
(
QWidget
*
,
QMouseEvent
*
)
),
this
,
SLOT
(
deleteButtonClicked
(
QWidget
*
,
QMouseEvent
*
)
)
);
connect
(
m_ui
->
delLabel
,
SIGNAL
(
clicked
(
QWidget
*
,
QMouseEvent
*
)
),
this
,
SLOT
(
deleteButtonClicked
(
QWidget
*
,
QMouseEvent
*
)
)
);
//TODO : if it's a clip, disable the arrow
connect
(
m_ui
->
arrow
,
SIGNAL
(
clicked
(
QWidget
*
,
QMouseEvent
*
)
),
...
...
@@ -99,9 +99,10 @@ void MediaCellView::mouseDoubleClickEvent( QMouseEvent* event )
Clip
*
clip
=
Library
::
getInstance
()
->
clip
(
m_uuid
);
if
(
clip
==
NULL
)
return
;
ClipProperty
*
mp
=
new
ClipProperty
(
clip
,
this
);
mp
->
setModal
(
true
);
mp
->
show
();
ClipProperty
*
cp
=
new
ClipProperty
(
clip
,
this
);
cp
->
setModal
(
true
);
cp
->
show
();
delete
cp
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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