Showing the changes to interface/src/scripting/GooglePolyScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -106,7 +106,7 @@ int GooglePolyScriptingInterface::getRandIntInRange(int length) { · 105 unmodified lines | ||
| 106 | 106 | |
| 107 | 107 | QUrl GooglePolyScriptingInterface::formatURLQuery(QString keyword, QString category, QString format) { |
| 108 | 108 | QString queries; |
| 109 | − if (!validFormats.contains(format) || !validCategories.contains(category)) { | |
| 109 | + if (!validFormats.contains(format, Qt::CaseInsensitive) || !validCategories.contains(category, Qt::CaseInsensitive)) { | |
| 110 | 110 | return QUrl(""); |
| 111 | 111 | } else { |
| 112 | 112 | if (!keyword.isEmpty()) { |