handle no windows in "Close active"

This commit is contained in:
augustin_s committed 2023-01-25 13:20:19 +01:00
1 parent c3bdc54f4b
commit 10f54336a2
1 file changed
+2 -1
+2 -1
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()