-ExternalSource* Parameters::searchSourceByName(const QString& name) {\r
- foreach(ExternalSource* s, availableSources) {\r
- if (s->getName() == name) return s;\r
+QList<ExternalResource *> Parameters::searchResourceByName(const QString& name) {\r
+ QList<ExternalResource*> listRes;\r
+ foreach(ExternalResource* s, availableResources) {\r
+ if (s->getName() == name) {\r
+ listRes.append(s);\r
+ }\r