Commit 5e01839b authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

Remember to delete our dialog QPointers

svn path=/trunk/KDE/kdeutils/ark/; revision=1012086
parent 19bee3f8
......@@ -186,6 +186,8 @@ void MainWindow::editToolbars()
createGUI(m_part);
applyMainWindowSettings(KGlobal::config()->group(QLatin1String("MainWindow")));
delete dlg;
}
void MainWindow::openArchive()
......
......@@ -257,6 +257,7 @@ bool BatchExtract::showExtractDialog()
}
if (!dialog->exec()) {
delete dialog;
return false;
}
......@@ -265,6 +266,8 @@ bool BatchExtract::showExtractDialog()
setOpenDestinationAfterExtraction(dialog->openDestinationAfterExtraction());
setPreservePaths(dialog->preservePaths());
delete dialog;
return true;
}
}
......
......@@ -93,6 +93,8 @@ void OverwriteQuery::execute()
m_data["newFilename"] = dialog->newDestUrl().pathOrUrl();
setResponse(dialog->result());
delete dialog;
}
bool OverwriteQuery::responseCancelled()
......@@ -169,6 +171,8 @@ void PasswordNeededQuery::execute()
m_data["password"] = dlg->password();
setResponse(true);
}
delete dlg;
}
QString PasswordNeededQuery::password()
......
......@@ -572,6 +572,8 @@ void Part::slotExtractFiles()
job->start();
}
delete dialog;
}
QList<QVariant> Part::selectedFilesWithChildren()
......
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