Commit 98449e55 authored by Antoine Cellerier's avatar Antoine Cellerier

Do not lose the playlist columns when switching to a different view.

parent ef732d7d
......@@ -851,6 +851,7 @@ void PLModel::viewchanged( int meta )
{
beginRemoveColumns( parent, index, index+1 );
rootItem->i_showflags &= ~( meta );
getSettings()->setValue( "qt-pl-showflags", rootItem->i_showflags );
rootItem->updateColumnHeaders();
endRemoveColumns();
}
......@@ -859,6 +860,7 @@ void PLModel::viewchanged( int meta )
/* Adding columns */
beginInsertColumns( parent, index, index+1 );
rootItem->i_showflags |= meta;
getSettings()->setValue( "qt-pl-showflags", rootItem->i_showflags );
rootItem->updateColumnHeaders();
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