Commit dac9e25b authored by Jakob Leben's avatar Jakob Leben Committed by Jean-Baptiste Kempf

Qt4 playlist: fix crash when deleting nodes and their children

This patch fixes the crash when a node is selected together with it's children and then deleted
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6ddbe72f
......@@ -738,6 +738,7 @@ void PLModel::doDelete( QModelIndexList selected )
recurseDelete( item->children, &selected );
doDeleteItem( item, &selected );
}
if( i > selected.size() ) i = selected.size();
}
}
......
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