mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-06-25 06:35:17 -04:00
Tidy up some ugly code
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8112 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
1ff4d6ba52
commit
66feb99630
@ -202,15 +202,11 @@ void DisplayText::displayDecodedText(DecodedText const& decodedText, QString con
|
|||||||
or decodedText.indexOf (" " + myCall + ">") >= 0)) {
|
or decodedText.indexOf (" " + myCall + ">") >= 0)) {
|
||||||
bg = color_MyCall;
|
bg = color_MyCall;
|
||||||
}
|
}
|
||||||
// if enabled add the DXCC entity and B4 status to the end of the
|
|
||||||
// preformated text line t1
|
|
||||||
auto message = decodedText.string ();
|
auto message = decodedText.string ();
|
||||||
int nbsp_position = message.indexOf (QChar::Nbsp);
|
message = message.left (message.indexOf (QChar::Nbsp)); // strip appended info
|
||||||
if (nbsp_position >= 0)
|
|
||||||
{
|
|
||||||
message = message.left (nbsp_position);
|
|
||||||
}
|
|
||||||
if (displayDXCCEntity && CQcall)
|
if (displayDXCCEntity && CQcall)
|
||||||
|
// if enabled add the DXCC entity and B4 status to the end of the
|
||||||
|
// preformated text line t1
|
||||||
message = appendDXCCWorkedB4 (message, decodedText.CQersCall (), &bg, logBook, color_CQ,
|
message = appendDXCCWorkedB4 (message, decodedText.CQersCall (), &bg, logBook, color_CQ,
|
||||||
color_DXCC, color_NewCall);
|
color_DXCC, color_NewCall);
|
||||||
appendText (message.trimmed (), bg);
|
appendText (message.trimmed (), bg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user