Commit 7573989d authored by Ilkka Ollakka's avatar Ilkka Ollakka

use allready created index instead of creating same index again.

parent bfd22ddd
...@@ -867,7 +867,7 @@ void PLModel::viewchanged( int meta ) ...@@ -867,7 +867,7 @@ void PLModel::viewchanged( int meta )
else else
{ {
/* Adding columns */ /* Adding columns */
beginInsertColumns( createIndex( 0, 0, rootItem), index, index+1 ); beginInsertColumns( parent, index, index+1 );
rootItem->i_showflags |= meta; rootItem->i_showflags |= meta;
rootItem->updateColumnHeaders(); rootItem->updateColumnHeaders();
endInsertColumns(); endInsertColumns();
......
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