summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeslie Zhai <[email protected]>2017-06-09 11:37:13 +0800
committerLeslie Zhai <[email protected]>2017-06-09 11:37:13 +0800
commit9bf5cdeef5803445ca7f67dd54ae694147e0fd53 (patch)
treef08f9f6ac53b3e55e65db86422b6465309ae0d38
parentcb723c528e8bf4ac3a60a244690439230d1e2346 (diff)
Fix BurnProgressDialog delete wrongly issue.
-rw-r--r--src/misc/k3bmediacopydialog.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/misc/k3bmediacopydialog.cpp b/src/misc/k3bmediacopydialog.cpp
index 7e9a538..13b4451 100644
--- a/src/misc/k3bmediacopydialog.cpp
+++ b/src/misc/k3bmediacopydialog.cpp
@@ -286,12 +286,11 @@ void K3b::MediaCopyDialog::slotStartClicked()
dlg = new K3b::BurnProgressDialog( parentWidget() );
}
+ dlg->setAttribute(Qt::WA_DeleteOnClose);
+
K3b::BurnJob* burnJob = 0;
if( m_comboCopyMode->currentIndex() == 1 ) {
-#ifdef K3B_DEBUG
- qDebug() << "DEBUG:" << __PRETTY_FUNCTION__ << m_tempDirSelectionWidget->tempPath();
-#endif
//
// check for m_tempDirSelectionWidget->tempPath() and
// m_tempDirSelectionWidget-tempPath() + ".toc"
@@ -302,7 +301,6 @@ void K3b::MediaCopyDialog::slotStartClicked()
i18n("File Exists"),
KStandardGuiItem::overwrite() )
!= KMessageBox::Continue )
- delete dlg;
return;
}
@@ -312,7 +310,6 @@ void K3b::MediaCopyDialog::slotStartClicked()
i18n("File Exists"),
KStandardGuiItem::overwrite() )
!= KMessageBox::Continue )
- delete dlg;
return;
}
@@ -376,7 +373,6 @@ void K3b::MediaCopyDialog::slotStartClicked()
else {
// do not translate this as it is not intended to be included in the stable version!
KMessageBox::sorry( this, "Ups", "No copy support for this source media type yet." );
- delete dlg;
return;
}