Commit fcef76d4 authored by Ilkka Ollakka's avatar Ilkka Ollakka

qt4: don't rebuild playlist-model from start when adding/removing columns

parent 3fbe4e68
......@@ -1004,6 +1004,8 @@ void PLModel::viewchanged( int meta )
index = __MIN( index, columnCount() );
QModelIndex parent = createIndex( 0, 0, rootItem );
emit layoutAboutToBeChanged();
if( i_showflags & meta )
/* Removing columns */
{
......@@ -1020,8 +1022,10 @@ void PLModel::viewchanged( int meta )
getSettings()->setValue( "qt-pl-showflags", i_showflags );
emit endInsertColumns();
}
emit columnsChanged( meta );
rebuild();
emit layoutChanged();
}
}
......
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