From f5086b62ccace2eb756fea97b2e250524af4ad14 Mon Sep 17 00:00:00 2001 From: Koen Schmeets Date: Fri, 4 Dec 2020 23:27:16 +0100 Subject: [PATCH] Analyze | Stop Tracing (Ctrl+Shift+S) saves CSV only if a point is being traced This avoids confusion with "Ctrl+Shift+S" being used as "Save As..." shortcut on some platforms. --- src/solvespace.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/solvespace.cpp b/src/solvespace.cpp index acc7162e..cc89fed0 100644 --- a/src/solvespace.cpp +++ b/src/solvespace.cpp @@ -904,6 +904,9 @@ void SolveSpaceUI::MenuAnalyze(Command id) { break; case Command::STOP_TRACING: { + if (SS.traced.point == Entity::NO_ENTITY) { + break; + } Platform::FileDialogRef dialog = Platform::CreateSaveFileDialog(SS.GW.window); dialog->AddFilters(Platform::CsvFileFilters); dialog->ThawChoices(settings, "Trace");