Commit d6b30b7d authored by Michael Pyne's avatar Michael Pyne
Browse files

Correction to my last commit: Fix column visibility in a way that is compatible with

prior jukrc files.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=760163
parent 17a8c095
......@@ -282,8 +282,8 @@ Playlist::SharedSettings::SharedSettings()
// Convert the int list into a bool list.
m_columnsVisible.fill(false);
foreach(int column, l)
m_columnsVisible[column] = true;
for(int i = 0; i < l.size() && i < m_columnsVisible.size(); ++i)
m_columnsVisible[i] = bool(l[i]);
}
m_inlineCompletion = KGlobalSettings::Completion(
......@@ -301,8 +301,7 @@ void Playlist::SharedSettings::writeConfig()
QList<int> l;
for(int i = 0; i < m_columnsVisible.size(); i++)
if(m_columnsVisible[i])
l.append(i);
l.append(int(m_columnsVisible[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