Commit 92b1891e authored by Scott Wheeler's avatar Scott Wheeler

Porting this bugfix to HEAD.

svn path=/trunk/kdemultimedia/juk/; revision=215314
parent 763df7b8
......@@ -133,6 +133,8 @@ void Playlist::SharedSettings::apply(Playlist *l) const
else if(! m_columnsVisible[i] && l->isColumnVisible(i))
l->hideColumn(i);
}
l->updateLeftColumn();
}
////////////////////////////////////////////////////////////////////////////////
......@@ -390,6 +392,19 @@ void Playlist::setName(const QString &n)
emit signalNameChanged(m_playlistName);
}
void Playlist::updateLeftColumn()
{
int newLeftColumn = leftMostVisibleColumn();
if(m_leftColumn != newLeftColumn) {
if(m_playingItem) {
m_playingItem->setPixmap(m_leftColumn, QPixmap(0, 0));
m_playingItem->setPixmap(newLeftColumn, QPixmap(UserIcon("playing")));
}
m_leftColumn = newLeftColumn;
}
}
////////////////////////////////////////////////////////////////////////////////
// public slots
////////////////////////////////////////////////////////////////////////////////
......
......@@ -122,6 +122,12 @@ public:
KActionMenu *columnVisibleAction() const { return m_columnVisibleAction; }
void setPlaying(PlaylistItem *item, bool playing = true);
/**
* This forces an update of the left most visible column, but does not save
* the settings for this.
*/
void updateLeftColumn();
public slots:
/**
......
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