handle no windows in "Close active"
This commit is contained in:
1 parent
c3bdc54f4b
commit
10f54336a2
1 file changed
+2
-1
+2
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user