Commit 2c3bac1e authored by Ilkka Ollakka's avatar Ilkka Ollakka

qt4: add forgotten check so we don't try to get stuff from NULL-pointer

parent cda2d77f
......@@ -282,7 +282,7 @@ bool PLModel::dropMimeData( const QMimeData *data, Qt::DropAction action,
void PLModel::removeItem( int i_id )
{
PLItem *item = FindById( rootItem, i_id );
if( currentItem && currentItem->p_input == item->p_input ) currentItem = NULL;
if( currentItem && item && currentItem->p_input == item->p_input ) currentItem = NULL;
if( item ) item->remove( item );
}
......
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