Skip to content

Commit 2103527

Browse files
author
SuslikV
authored
Use unified function for Docks searching
1 parent 426f8c8 commit 2103527

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/windows/main_window.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2329,15 +2329,15 @@ def resizeEvent(self, event):
23292329
def showEvent(self, event):
23302330
""" Have any child windows follow main-window state """
23312331
QMainWindow.showEvent(self, event)
2332-
for child in self.findChildren(QDockWidget):
2332+
for child in self.getDocks():
23332333
if child.isFloating() and child.isEnabled():
23342334
child.raise_()
23352335
child.show()
23362336

23372337
def hideEvent(self, event):
23382338
""" Have any child windows hide with main window """
23392339
QMainWindow.hideEvent(self, event)
2340-
for child in self.findChildren(QDockWidget):
2340+
for child in self.getDocks():
23412341
if child.isFloating() and child.isVisible():
23422342
child.hide()
23432343

0 commit comments

Comments
 (0)