freesound: break page-request loop if search result is empty.
git-svn-id: svn://localhost/ardour2/branches/3.0@13699 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
cea21cab7e
commit
51091b2cf9
|
@ -879,6 +879,11 @@ SoundFileBrowser::freesound_search()
|
||||||
}
|
}
|
||||||
|
|
||||||
XMLNodeList sounds = sounds_root->children();
|
XMLNodeList sounds = sounds_root->children();
|
||||||
|
if (sounds.size() == 0) {
|
||||||
|
/* nothing found */
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
XMLNodeConstIterator niter;
|
XMLNodeConstIterator niter;
|
||||||
XMLNode *node;
|
XMLNode *node;
|
||||||
for (niter = sounds.begin(); niter != sounds.end(); ++niter) {
|
for (niter = sounds.begin(); niter != sounds.end(); ++niter) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user