add test connection button disabling, fix DEFAULT port constant, fix gui closeEvent issues, test launching after connectionDialog

This commit is contained in:
Xevion
2021-01-25 12:05:02 -06:00
parent 628aaea937
commit 66d85369e1
4 changed files with 15 additions and 19 deletions

View File

@@ -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: