Commit 251f5370 authored by Clement CHAVANCE's avatar Clement CHAVANCE

removed useless optimisation

parent 8ead20b7
......@@ -37,6 +37,7 @@ MediaListViewController::~MediaListViewController()
{
delete m_cells;
}
void MediaListViewController::newMediaLoaded( const QUuid& uuid )
{
Media* media = Library::getInstance()->media( uuid );
......@@ -109,8 +110,6 @@ void MediaListViewController::showClipList( const QUuid& uuid )
if ( Library::getInstance()->media( uuid ) == NULL ||
Library::getInstance()->media( uuid )->clips()->size() == 0 )
return ;
if ( m_lastUuidClipListAsked != uuid )
{
m_lastUuidClipListAsked = uuid;
if ( m_clipsListView != 0 )
delete m_clipsListView;
......@@ -118,7 +117,6 @@ void MediaListViewController::showClipList( const QUuid& uuid )
m_clipsListView->addClipsFromMedia( Library::getInstance()->media( uuid ) );
connect( m_clipsListView, SIGNAL( clipSelected( const QUuid& ) ),
this, SLOT( clipSelection( const QUuid& ) ) );
}
m_nav->pushViewController( m_clipsListView );
}
......@@ -132,8 +130,10 @@ void MediaListViewController::newClipAdded( Clip* clip )
{
MediaCellView* cell = qobject_cast<MediaCellView*>( m_cells->value( uuid, 0 ) );
if ( cell != 0 )
{
cell->incrementClipCount();
}
}
}
void MediaListViewController::restoreContext()
......
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