openFile: Use QPointer [krazy 22/37] by Mikko Rapeli

parent 6cb2872b
......@@ -2062,7 +2062,7 @@ void MainWindow::openFile(const KUrl &url)
if (>is("application/x-compressed-tar")) {
// Opening a compressed project file, we need to process it
kDebug()<<"Opening archive, processing";
ArchiveWidget *ar = new ArchiveWidget(url);
QPointer<ArchiveWidget> ar = new ArchiveWidget(url);
if (ar->exec() == QDialog::Accepted) openFile(KUrl(ar->extractedProjectFile()));
delete ar;
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