From b616d6642cad14640e61e1cb316606bf74879f8f Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Sat, 16 Oct 2021 20:13:16 +0200 Subject: [PATCH] Update TraceView.cpp --- SandboxiePlus/SandMan/Views/TraceView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SandboxiePlus/SandMan/Views/TraceView.cpp b/SandboxiePlus/SandMan/Views/TraceView.cpp index 7a6d7b25..d457fb43 100644 --- a/SandboxiePlus/SandMan/Views/TraceView.cpp +++ b/SandboxiePlus/SandMan/Views/TraceView.cpp @@ -332,6 +332,8 @@ void CTraceView::OnSetFilter() void CTraceView::SaveToFile() { QString Path = QFileDialog::getSaveFileName(this, tr("Save trace log to file"), "", QString("Log files (*.log)")).replace("/", "\\"); + if (Path.isEmpty()) + return; QFile File(Path); if (!File.open(QFile::WriteOnly)) {