Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit cd983501 authored by Kacper Kasper's avatar Kacper Kasper

Tried to fix order restore. Failed.

parent f2babd17
......@@ -211,7 +211,7 @@ void Playlist::SharedSettings::setColumnOrder(const Playlist *l)
for(int i = l->columnOffset(); i < l->columnCount(); ++i)
m_columnOrder.append(l->header()->visualIndex(i)); // FIXME MISMATCH with apply
......@@ -240,8 +240,10 @@ void Playlist::SharedSettings::apply(Playlist *l) const
int offset = l->columnOffset();
int i = 0;
bool oldState = l->header()->blockSignals(true);
foreach(int column, m_columnOrder)
l->header()->moveSection(i++ + offset, column + offset);
l->header()->moveSection(l->header()->visualIndex(i++ + offset), column + offset); // FIXME mismatch with setColumnOrder
for(int i = 0; i < m_columnsVisible.size(); i++) {
if(m_columnsVisible[i] && l->isColumnHidden(i + offset))
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