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:
Robin Gareus 2012-12-21 14:26:10 +00:00
parent cea21cab7e
commit 51091b2cf9

View File

@ -879,6 +879,11 @@ SoundFileBrowser::freesound_search()
}
XMLNodeList sounds = sounds_root->children();
if (sounds.size() == 0) {
/* nothing found */
break;
}
XMLNodeConstIterator niter;
XMLNode *node;
for (niter = sounds.begin(); niter != sounds.end(); ++niter) {