Commit 1a4439ce authored by Scott Wheeler's avatar Scott Wheeler

Only update the editor when it's actually visible, and just before it is

shown.

svn path=/trunk/kdemultimedia/juk/; revision=202983
parent 5521d000
......@@ -64,7 +64,8 @@ void TagEditor::setItems(const PlaylistItemList &list)
{
saveChangesPrompt();
items = list;
refresh();
if(isVisible())
refresh();
}
void TagEditor::refresh()
......@@ -513,6 +514,12 @@ void TagEditor::addItem(const QString &text, QWidget *item, QBoxLayout *layout)
enableBoxes.insert(item, enableBox);
}
void TagEditor::showEvent(QShowEvent *e)
{
refresh();
QWidget::showEvent(e);
}
////////////////////////////////////////////////////////////////////////////////
// private slots
////////////////////////////////////////////////////////////////////////////////
......
......@@ -63,6 +63,8 @@ private:
*/
void addItem(const QString &text, QWidget *item, QBoxLayout *layout);
virtual void showEvent(QShowEvent *e);
private slots:
void setDataChanged(bool c = true);
......
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