From: Flavio Date: Sun, 10 Jun 2012 14:13:37 +0000 (+0200) Subject: Fixed duplicate suggestions with different case X-Git-Tag: 1.8~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=196e250a5061f703cfaf595d9359c49bbdfa0575;p=minitube Fixed duplicate suggestions with different case --- diff --git a/src/channelsuggest.cpp b/src/channelsuggest.cpp index c36afb7..ccec4a0 100644 --- a/src/channelsuggest.cpp +++ b/src/channelsuggest.cpp @@ -35,7 +35,7 @@ void ChannelSuggest::handleNetworkData(QByteArray data) { while ((pos = re.indexIn(html, pos)) != -1) { // qDebug() << re.cap(0) << re.cap(1); QString choice = re.cap(1); - if (!choices.contains(choice)) { + if (!choices.contains(choice, Qt::CaseInsensitive)) { choices << choice; if (choices.size() == 10) break; }