From b5b74a3fa04ca6062d860cfe6f1d8def6f11fd33 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 25 May 2020 21:07:25 +0200 Subject: [PATCH] bug fix with the initial connect dialog initialization when Jamulus is started up and the dialog was open previously --- src/clientdlg.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/clientdlg.cpp b/src/clientdlg.cpp index 1f8771ea..a4f33257 100755 --- a/src/clientdlg.cpp +++ b/src/clientdlg.cpp @@ -401,11 +401,6 @@ CClientDlg::CClientDlg ( CClient* pNCliP, ConnectDlg.restoreGeometry ( pClient->vecWindowPosConnect ); } - if ( pClient->bWindowWasShownConnect ) - { - ShowConnectionSetupDialog(); - } - // Connections ------------------------------------------------------------- // push buttons @@ -559,9 +554,15 @@ CClientDlg::CClientDlg ( CClient* pNCliP, this, SLOT ( OnConnectDlgAccepted() ) ); - // Timers ------------------------------------------------------------------ + // Initializations which have to be done after the signals are connected --- // start timer for status bar TimerStatus.start ( LED_BAR_UPDATE_TIME_MS ); + + // restore connect dialog + if ( pClient->bWindowWasShownConnect ) + { + ShowConnectionSetupDialog(); + } } void CClientDlg::closeEvent ( QCloseEvent* Event )