Skip to content

Commit

Permalink
Style changes 3, add "-" to main window title
Browse files Browse the repository at this point in the history
  • Loading branch information
softins authored and pljones committed Apr 1, 2021
1 parent d8f9299 commit aeb9375
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/clientdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ void CClientDlg::SetMyWindowTitle ( const int iNumClients )
{
// if --clientname is used, the APP_NAME must be the very first word in
// the title, otherwise some user scripts do not work anymore, see #789
strWinTitle += QString ( APP_NAME ) + " " + pClient->strClientName + " ";
strWinTitle += QString ( APP_NAME ) + " - " + pClient->strClientName + " ";
}

if ( iNumClients == 0 )
Expand Down Expand Up @@ -1002,50 +1002,50 @@ void CClientDlg::ShowConnectionSetupDialog()
{
// show connect dialog
bConnectDlgWasShown = true;
ConnectDlg.show ();
ConnectDlg.show();
ConnectDlg.setWindowTitle ( MakeClientNameTitle ( tr ( "Connect" ) , pClient->strClientName ) );

// make sure dialog is upfront and has focus
ConnectDlg.raise ();
ConnectDlg.activateWindow ();
ConnectDlg.raise();
ConnectDlg.activateWindow();
}

void CClientDlg::ShowMusicianProfileDialog()
{
// show musician profile dialog
MusicianProfileDlg.show ();
MusicianProfileDlg.show();
MusicianProfileDlg.setWindowTitle ( MakeClientNameTitle ( tr ( "Musician Profile" ) , pClient->strClientName ) );

// make sure dialog is upfront and has focus
MusicianProfileDlg.raise ();
MusicianProfileDlg.activateWindow ();
MusicianProfileDlg.raise();
MusicianProfileDlg.activateWindow();
}

void CClientDlg::ShowGeneralSettings()
{
// open general settings dialog
ClientSettingsDlg.show ();
ClientSettingsDlg.show();
ClientSettingsDlg.setWindowTitle ( MakeClientNameTitle ( tr ( "Settings" ) , pClient->strClientName ) );

// make sure dialog is upfront and has focus
ClientSettingsDlg.raise ();
ClientSettingsDlg.activateWindow ();
ClientSettingsDlg.raise();
ClientSettingsDlg.activateWindow();
}

void CClientDlg::ShowChatWindow ( const bool bForceRaise )
{
ChatDlg.show ();
ChatDlg.show();
ChatDlg.setWindowTitle ( MakeClientNameTitle ( tr ( "Chat" ) , pClient->strClientName ) );

if ( bForceRaise )
{
// make sure dialog is upfront and has focus
ChatDlg.showNormal ();
ChatDlg.raise ();
ChatDlg.activateWindow ();
ChatDlg.showNormal();
ChatDlg.raise();
ChatDlg.activateWindow();
}

UpdateDisplay ();
UpdateDisplay();
}

void CClientDlg::ShowAnalyzerConsole()
Expand Down

0 comments on commit aeb9375

Please sign in to comment.