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 | QUrl GooglePolyScriptingInterface::formatURLQuery(QString keyword, QString category, QString format) { | 107 | QUrl GooglePolyScriptingInterface::formatURLQuery(QString keyword, QString category, QString format) { |
| 108 | QString queries; | 108 | QString queries; |
| 109 | if (!validFormats.contains(format) || !validCategories.contains(category)) { | 109 | if (!validFormats.contains(format, Qt::CaseInsensitive) || !validCategories.contains(category, Qt::CaseInsensitive)) { |
| 110 | return QUrl(""); | 110 | return QUrl(""); |
| 111 | } else { | 111 | } else { |
| 112 | if (!keyword.isEmpty()) { | 112 | if (!keyword.isEmpty()) { |