aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playlistmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui/playlistmodel.cpp')
-rw-r--r--src/qmmpui/playlistmodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp
index 0b8602334..60bf7226d 100644
--- a/src/qmmpui/playlistmodel.cpp
+++ b/src/qmmpui/playlistmodel.cpp
@@ -676,6 +676,7 @@ void PlayListModel::showDetails(QWidget *parent)
if(!selected_tracks.isEmpty())
{
QDialog *d = new DetailsDialog(selected_tracks, parent);
+ d->setAttribute(Qt::WA_DeleteOnClose, true);
TagUpdater *updater = new TagUpdater(d, selected_tracks);
connect(updater, SIGNAL(destroyed(QObject *)),SLOT(updateMetaData()));
d->show();
@@ -689,6 +690,7 @@ void PlayListModel::showDetailsForCurrent(QWidget *parent)
QList<PlayListTrack *> l;
l.append(m_current_track);
QDialog *d = new DetailsDialog(l, parent);
+ d->setAttribute(Qt::WA_DeleteOnClose, true);
TagUpdater *updater = new TagUpdater(d, l);
connect(updater, SIGNAL(destroyed(QObject *)),SLOT(updateMetaData()));
d->show();