slotOpenBackupDialog: Use QPointer [krazy 31/37] by Mikko Rapeli

parent 0b80c8c1
......@@ -4470,7 +4470,7 @@ void MainWindow::slotOpenBackupDialog(const KUrl url)
projectId = m_activeDocument->getDocumentProperty("documentid");
}
BackupWidget *dia = new BackupWidget(projectFile, projectFolder, projectId, this);
QPointer<BackupWidget> dia = new BackupWidget(projectFile, projectFolder, projectId, this);
if (dia->exec() == QDialog::Accepted) {
QString requestedBackup = dia->selectedFile();
m_activeDocument->backupLastSavedVersion(projectFile.path());
......
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