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

parent 6cb2872b
......@@ -2062,7 +2062,7 @@ void MainWindow::openFile(const KUrl &url)
if (mime.data()->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;
return;
......
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