Application crash.

--HG--
branch : feature
This commit is contained in:
dismine 2014-12-17 14:57:17 +02:00
parent d6c78ca1a1
commit 0e6188d847
2 changed files with 4 additions and 0 deletions

View file

@ -516,6 +516,7 @@ void VApplication::ClearOldLogs() const
qCDebug(vApp) << "Failed to lock"<<info.absoluteFilePath();
}
delete lock;
lock = nullptr;
}
}
else

View file

@ -1454,6 +1454,8 @@ void MainWindow::Clear()
qCDebug(vMainWindow)<<"Reseting main window";
delete lock; // Unlock pattern file
lock = nullptr;
ui->actionDetails->setChecked(false);
ui->actionDetails->setEnabled(false);
ui->actionDraw->setChecked(true);
@ -2453,6 +2455,7 @@ QStringList MainWindow::GetUnlokedRestoreFileList() const
restoreFiles.append(files.at(i));
}
delete lock;
lock = nullptr;
}
// Clearing list after filtering