Make sure selected text found matches search

This commit is contained in:
Jordan Sherer 2019-01-20 23:27:32 -05:00
parent ef6bde8cb0
commit b97e0f3411

View File

@ -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();
}