From 8b3714bf1c9d6d100585ae83c51c974563073923 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 9 May 2018 17:49:54 +0000 Subject: [PATCH] Correct the logic for removing a Hound call from the to-be-called queue. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8652 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 4fcf7b9e5..271267bee 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -7784,6 +7784,7 @@ void MainWindow::rm_tb4(QString houndCall) t += line; } } + t.replace("\n\n","\n"); ui->textBrowser4->setText(t); } @@ -7792,13 +7793,13 @@ void MainWindow::doubleClickOnFoxQueue(Qt::KeyboardModifiers modifiers) if(modifiers==9999) return; //Silence compiler warning QTextCursor cursor=ui->textBrowser4->textCursor(); cursor.setPosition(cursor.selectionStart()); - QString houndCall=cursor.block().text().mid(0,6).trimmed(); + QString houndCall=cursor.block().text().mid(0,12).trimmed(); rm_tb4(houndCall); writeFoxQSO(" Del: " + houndCall); QQueue tmpQueue; while(!m_houndQueue.isEmpty()) { QString t=m_houndQueue.dequeue(); - QString hc=t.mid(0,6).trimmed(); + QString hc=t.mid(0,12).trimmed(); if(hc != houndCall) tmpQueue.enqueue(t); } m_houndQueue.swap(tmpQueue);