summaryrefslogtreecommitdiff
path: root/src/urlbar/listitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlbar/listitem.cpp')
-rw-r--r--src/urlbar/listitem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp
index e1c13ce7..c6f4210e 100644
--- a/src/urlbar/listitem.cpp
+++ b/src/urlbar/listitem.cpp
@@ -226,6 +226,11 @@ static QString highlightWordsInText(const QString &text, const QStringList &word
index = ret.indexOf(wordToPointOut, index + wordToPointOut.size(), Qt::CaseInsensitive);
}
}
+
+
+ if (boldSections.isEmpty())
+ return ret;
+
int numSections = 0;
for (int i = 0; i < boldSections.size() - 1; ++i)
{