]> git.sur5r.net Git - minitube/commitdiff
Fixed duplicate suggestions with different case
authorFlavio <flavio@odisseo.local>
Sun, 10 Jun 2012 14:13:37 +0000 (16:13 +0200)
committerFlavio <flavio@odisseo.local>
Sun, 10 Jun 2012 14:13:37 +0000 (16:13 +0200)
src/channelsuggest.cpp

index c36afb73dc8a271681c665436a84d839425a04a2..ccec4a0eb6cba73455aac9fc15ae1eef8ccf9170 100644 (file)
@@ -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;
         }