Added more checks on actions for project or document being open

This commit is contained in:
Veronica K. B. Olsen
2020-11-01 18:39:12 +01:00
parent 98be2bd5b4
commit 2a0be718d7
4 changed files with 37 additions and 12 deletions
+1
View File
@@ -1053,6 +1053,7 @@ class GuiMain(QMainWindow):
"""
if self.docEditor.theHandle is None:
logger.error("No document open, so not activating Focus Mode")
self.mainMenu.aFocusMode.setChecked(self.isFocusMode)
return False
self.isFocusMode = not self.isFocusMode