Commit 9f6df32d authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

MediaCellView: Correcting memory leak.

parent ba3b2fdb
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "ClipProperty.h" #include "ClipProperty.h"
#include <QTime> #include <QTime>
#include <QDebug>
MediaCellView::MediaCellView( const QUuid& uuid, QWidget *parent ) : MediaCellView::MediaCellView( const QUuid& uuid, QWidget *parent ) :
QWidget( parent ), m_ui( new Ui::MediaCellView ), m_uuid( uuid ) QWidget( parent ), m_ui( new Ui::MediaCellView ), m_uuid( uuid )
...@@ -35,7 +34,8 @@ MediaCellView::MediaCellView( const QUuid& uuid, QWidget *parent ) : ...@@ -35,7 +34,8 @@ MediaCellView::MediaCellView( const QUuid& uuid, QWidget *parent ) :
m_ui->setupUi( this ); m_ui->setupUi( this );
setFocusPolicy( Qt::ClickFocus ); setFocusPolicy( Qt::ClickFocus );
setAutoFillBackground( true ); 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 //TODO : if it's a clip, disable the arrow
connect( m_ui->arrow, connect( m_ui->arrow,
SIGNAL( clicked( QWidget*, QMouseEvent* ) ), SIGNAL( clicked( QWidget*, QMouseEvent* ) ),
...@@ -99,9 +99,10 @@ void MediaCellView::mouseDoubleClickEvent( QMouseEvent* event ) ...@@ -99,9 +99,10 @@ void MediaCellView::mouseDoubleClickEvent( QMouseEvent* event )
Clip* clip = Library::getInstance()->clip( m_uuid ); Clip* clip = Library::getInstance()->clip( m_uuid );
if ( clip == NULL ) if ( clip == NULL )
return; return;
ClipProperty* mp = new ClipProperty( clip, this ); ClipProperty* cp = new ClipProperty( clip, this );
mp->setModal( true ); cp->setModal( true );
mp->show(); cp->show();
delete cp;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment