Skip to content

Commit

Permalink
Merge pull request #1893 from ann0see/bugfix/1886-ReplaceAmpersand
Browse files Browse the repository at this point in the history
Fix Ampersand not being shown correctly
ann0see authored Jun 28, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 1796a98 + 9eb0855 commit b09cd68
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/audiomixerboard.cpp
Original file line number Diff line number Diff line change
@@ -1102,7 +1102,14 @@ void CAudioMixerBoard::UpdateTitle()
strTitlePrefix = "[" + tr ( "RECORDING ACTIVE" ) + "] ";
}

setTitle ( strTitlePrefix + tr ( "Personal Mix at: " ) + strServerName );
// replace & signs with && (See Qt documentation for QLabel)
// if strServerName includes an "&" sign, this is interpreted as keyboard shortcut (#1886)
// it might be possible to find a more elegant solution here?

QString strEscServerName = strServerName;
strEscServerName.replace ( "&", "&&" );

setTitle ( strTitlePrefix + tr ( "Personal Mix at: " ) + strEscServerName );
setAccessibleName ( title() );
}

0 comments on commit b09cd68

Please sign in to comment.