aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-01-16 15:52:24 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-01-16 15:52:24 +0000
commite336a9c15821384f6a45c3ef76bc133c133e35e5 (patch)
treef416576851fcda044539699cc7bd145248f7dc09
parent28696c8c5fd9218130bcbab178c97948e762879f (diff)
downloadqmmp-e336a9c15821384f6a45c3ef76bc133c133e35e5.tar.gz
qmmp-e336a9c15821384f6a45c3ef76bc133c133e35e5.tar.bz2
qmmp-e336a9c15821384f6a45c3ef76bc133c133e35e5.zip
removed Qt::WA_DeleteOnClose attribute from DetailsDialog
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9638 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/qmmpui/detailsdialog.cpp1
-rw-r--r--src/qmmpui/playlistmodel.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/qmmpui/detailsdialog.cpp b/src/qmmpui/detailsdialog.cpp
index 2cdf37849..dc70681df 100644
--- a/src/qmmpui/detailsdialog.cpp
+++ b/src/qmmpui/detailsdialog.cpp
@@ -40,7 +40,6 @@ DetailsDialog::DetailsDialog(QList<PlayListTrack *> tracks, QWidget *parent)
m_ui = new Ui::DetailsDialog;
m_ui->setupUi(this);
setAttribute(Qt::WA_QuitOnClose, false);
- setAttribute(Qt::WA_DeleteOnClose, true);
m_ui->directoryButton->setIcon(QApplication::style()->standardIcon(QStyle::SP_DirOpenIcon));
m_ui->nextButton->setIcon(QApplication::style()->standardIcon(QStyle::SP_ArrowRight));
m_ui->prevButton->setIcon(QApplication::style()->standardIcon(QStyle::SP_ArrowLeft));
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();