Make sure selected text found matches search
This commit is contained in:
parent
ef6bde8cb0
commit
b97e0f3411
@ -5605,7 +5605,8 @@ int MainWindow::writeMessageTextToUI(QDateTime date, QString text, int freq, boo
|
||||
|
||||
// fixup duplicate acks
|
||||
auto tc = c.document()->find(text);
|
||||
if(!tc.isNull() && text.contains(" ACK ")){
|
||||
if(!tc.isNull() && tc.selectedText() == text && text.contains(" ACK ")){
|
||||
qDebug() << "found" << tc.selectedText() << "so not displaying...";
|
||||
return tc.blockNumber();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user