X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.cpp;h=934fadf328b3103b1c9f1b96344989a78c104bd4;hp=de96b2dfdb437dee697aa2d89d01a1438820bce1;hb=7d7c70c5c27be65af2d53df5cca27265c2d1d666;hpb=f69d3d8fb4589d30b33cfb83a3b68a34517fc852 diff --git a/src/qtui/chatitem.cpp b/src/qtui/chatitem.cpp index de96b2df..934fadf3 100644 --- a/src/qtui/chatitem.cpp +++ b/src/qtui/chatitem.cpp @@ -445,7 +445,7 @@ QList ContentsChatItem::findClickables() const { for(int i = 0; i < regExpCount; i++) { if(matches[i] < 0 || matchEnd[i] > str.length()) continue; if(idx >= matchEnd[i]) { - matches[i] = str.indexOf(regExp[i], qMax(matchEnd[i], idx)); + matches[i] = regExp[i].indexIn(str, qMax(matchEnd[i], idx)); if(matches[i] >= 0) matchEnd[i] = matches[i] + regExp[i].cap(1).length(); } if(matches[i] >= 0 && matches[i] < minidx) {