Skip to content

Commit

Permalink
fix invalid return from MainWindow.eventFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
dstroy0 committed May 17, 2023
1 parent 2981a8e commit a42b01d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/cli_gen_tool_src/modules/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
# MainWindow is the parent of all process subwindows
# (MainWindow is noninteractable when any of its child popups are active except log history)
class MainWindow(
QMainWindow,
Pathing,
Logger,
UserDialogs,
NoDialogFileManipulation,
QMainWindow,
NoDialogFileManipulation,
SettingsTreeMethods,
CommandParametersMethods,
CommandTreeMethods,
Expand Down Expand Up @@ -243,7 +243,7 @@ def set_main_window_title(self, title: str = None) -> None:
self.setWindowTitle(windowtitle)
self.windowtitle_set = True

def eventFilter(self, watched: QObject, event: QEvent) -> bool:
def eventFilter(self, watched: QObject, event: QEvent):
"""MainWindow event filter
Args:
Expand Down Expand Up @@ -279,6 +279,7 @@ def eventFilter(self, watched: QObject, event: QEvent) -> bool:
self.command_tree.clearSelection()
self.command_tree.setCurrentItem(self.command_tree.invisibleRootItem())
self.command_tree_button_toggles()
return super(MainWindow, self).eventFilter(watched, event)

def closeEvent(self, event: QEvent):
"""do these things on app close
Expand Down

0 comments on commit a42b01d

Please sign in to comment.