Display Q65 decodes as white in Band Mp and Messages windows.

This commit is contained in:
Joe Taylor 2021-05-14 14:35:58 -04:00
parent 7076f3c749
commit 51b0941b20
2 changed files with 2 additions and 1 deletions

View File

@ -1428,7 +1428,6 @@ void MainWindow::readFromStdout() //readFromStdout
m=3;
#endif
if(n>=30) ui->decodedTextBrowser->append(t.mid(1,n-m));
// if(n<30) ui->decodedTextBrowser->append(t.mid(1,n-3)); //Write a no-decode JT65 line
n=ui->decodedTextBrowser->verticalScrollBar()->maximum();
ui->decodedTextBrowser->verticalScrollBar()->setValue(n);
m_messagesText="";

View File

@ -45,6 +45,8 @@ void Messages::setText(QString t, QString t2)
if(t2.mid(i-1,1)==" ") continue;
}
int n=line.mid(50,2).toInt();
if(line.indexOf(":")>0) n=-1;
if(n==-1) ui->messagesTextBrowser->setTextColor("#ffffff"); // white
if(n==0) ui->messagesTextBrowser->setTextColor(m_color0);
if(n==1) ui->messagesTextBrowser->setTextColor(m_color1);
if(n==2) ui->messagesTextBrowser->setTextColor(m_color2);