From e336a9c15821384f6a45c3ef76bc133c133e35e5 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 16 Jan 2021 15:52:24 +0000 Subject: 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 --- src/qmmpui/detailsdialog.cpp | 1 - src/qmmpui/playlistmodel.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 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 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(); -- cgit v1.2.3-13-gbd6f