handle no windows in "Close active"
This commit is contained in:
@ -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