Skip to content

Commit

Permalink
only when we have the multiple flightpath docking widget
Browse files Browse the repository at this point in the history
  • Loading branch information
ReimarBauer committed Apr 7, 2024
1 parent cf5a934 commit 807c073
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mslib/msui/viewwindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def closeEvent(self, event):
Overloads QtGui.QMainWindow.closeEvent(). This method is called if
Qt receives a window close request for our application window.
"""
if self.mainwindow_signal_logout_mscolab is not None:
if self.docks[5] is not None and self.mainwindow_signal_logout_mscolab is not None:
# ToDo instead of numbers [5] use names
# we need to disconnect the mainwindow_signal_logout when the topview is closed
# the next topview will connect one again
self.mainwindow_signal_logout_mscolab.disconnect()
Expand Down

0 comments on commit 807c073

Please sign in to comment.