From 35feb56d2a028f229f6b1298e2c089114d942870 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 23 Oct 2018 17:19:39 +0300 Subject: [PATCH] Fix a bug with cancel "Save as" --- src/XGUI/XGUI_Workshop.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index a9e69145c..90e33e315 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -1088,6 +1088,8 @@ bool XGUI_Workshop::onSaveAs() myCurrentFile += ".opp"; } } + else + return false; #ifndef HAVE_SALOME myMainWindow->setCurrentDir(myCurrentFile, false); myMainWindow->setModifiedState(false); -- 2.39.2