mirror of
https://github.com/Xevion/tcp-chat.git
synced 2025-12-06 03:16:44 -06:00
add test connection button disabling, fix DEFAULT port constant, fix gui closeEvent issues, test launching after connectionDialog
This commit is contained in:
@@ -82,14 +82,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
||||
self.get_message_history()
|
||||
|
||||
def closeEvent(self, event):
|
||||
if self.nicknameDialog and not self.closed:
|
||||
logger.debug('Closing nickname dialog before main window')
|
||||
self.closed = True
|
||||
self.nicknameDialog.close()
|
||||
else:
|
||||
self.receiveThread.stop()
|
||||
self.connectionsListTimer.stop()
|
||||
|
||||
self.receiveThread.stop()
|
||||
event.accept() # let the window close
|
||||
|
||||
def eventFilter(self, obj, event) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user