Skip to content

Commit eb0a9f9

Browse files
authored
wxGUI/main_window: fix displaying save workspace dialog before close workspace action (OSGeo#6387)
When closing workspace action is triggered via main window menu File -> Workspace -> Close
1 parent 17be03c commit eb0a9f9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gui/wxpython/main_window/frame.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,8 @@ def OnWorkspaceSaveAs(self, event=None):
17101710

17111711
def OnWorkspaceClose(self, event=None):
17121712
"""Close file with workspace definition"""
1713-
self.workspace_manager.Close()
1713+
if self.workspace_manager.CanClosePage(caption=_("Close workspace")):
1714+
self.workspace_manager.Close()
17141715

17151716
def OnDisplayClose(self, event=None):
17161717
"""Close current map display window"""

0 commit comments

Comments
 (0)