Commit 85b200e6 authored by Scott Wheeler's avatar Scott Wheeler

Fix renaming of playlists in compact mode.

svn path=/trunk/kdemultimedia/juk/; revision=220865
parent 5dca3e9e
......@@ -228,7 +228,7 @@ void PlaylistBox::rename(Item *item)
bool ok;
QString name = KLineEditDlg::getText(i18n("Rename"),
i18n("Please enter a name for this playlist:"), item->text(0), &ok);
i18n("Please enter a name for this playlist:"), item->text(), &ok);
if(ok) {
item->setText(0, name);
......
......@@ -149,11 +149,14 @@ protected:
Playlist *playlist() const { return m_list; }
PlaylistBox *listView() const { return static_cast<PlaylistBox *>(KListViewItem::listView()); }
const char *iconName() const { return m_iconName; }
QString text() const { return m_text; }
virtual int compare(QListViewItem *i, int col, bool) const;
virtual void paintCell(QPainter *p, const QColorGroup &colorGroup, int column, int width, int align);
virtual void setText(int column, const QString &text);
virtual QString text(int column) const { return KListViewItem::text(column); }
protected slots:
void slotSetName(const QString &name);
......
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