Skip to content

Commit

Permalink
Don't allow connecting to server if audio isn't working
Browse files Browse the repository at this point in the history
While it could make sense to allow using the chat, handling the
possible states for this get fairly complicated for not that much
benefit.
  • Loading branch information
npostavs committed Apr 13, 2021
1 parent 9794001 commit 7c549d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,11 @@ void CClient::OnClientIDReceived ( int iChanID )

void CClient::Start()
{
if ( !bLoadedDriverWithoutErrors )
{
return;
}

// init object
Init();

Expand Down
1 change: 1 addition & 0 deletions src/clientdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@ void CClientDlg::SetErrorMessage ( const QString& message )
{
lblGlobalErrorMessage->setText ( message );
lblGlobalErrorMessage->setVisible ( !message.isEmpty() );
butConnect->setEnabled ( message.isEmpty() );
}

void CClientDlg::OnTimerSigMet()
Expand Down

0 comments on commit 7c549d9

Please sign in to comment.