handle no windows in "Close active"

This commit is contained in:
2023-01-25 13:20:19 +01:00
parent c3bdc54f4b
commit 10f54336a2

View File

@ -143,7 +143,8 @@ class MDIArea(QMdiArea):
def closeActiveSubWindows(self):
active = self.activeSubWindow()
active.close()
if active:
active.close()
def closeInactiveSubWindows(self):
active = self.activeSubWindow()