Commit 17a8c095 authored by Michael Pyne's avatar Michael Pyne
Browse files

Save playlist column visibility correctly.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=760161
parent d1dc2b16
......@@ -258,7 +258,7 @@ Playlist::SharedSettings::SharedSettings()
KConfigGroup config(KGlobal::config(), "PlaylistShared");
bool resizeColumnsManually = config.readEntry("ResizeColumnsManually", false);
action<KToggleAction>("resizeColumnsManually")->setChecked(resizeColumnsManually);
action("resizeColumnsManually")->setChecked(resizeColumnsManually);
// Preallocate spaces so we don't need to check later.
m_columnsVisible.fill(true, PlaylistItem::lastColumn() + 1);
......@@ -301,7 +301,8 @@ void Playlist::SharedSettings::writeConfig()
QList<int> l;
for(int i = 0; i < m_columnsVisible.size(); i++)
l.append(int(m_columnsVisible[i]));
if(m_columnsVisible[i])
l.append(i);
config.writeEntry("VisibleColumns", l);
config.writeEntry("InlineCompletionMode", int(m_inlineCompletion));
......
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