mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-23 19:25:37 -05:00
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
This commit is contained in:
parent
58939ce011
commit
8b3714bf1c
@ -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<QString> 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);
|
||||
|
Loading…
Reference in New Issue
Block a user