This commit is contained in:
fgerlits 2006-08-04 16:36:24 +00:00
parent 8875ee0276
commit 1f8616951b
2 changed files with 11 additions and 2 deletions

View file

@ -446,6 +446,9 @@ void
SearchWindow :: localSearch(Ptr<SearchCriteria>::Ref criteria)
throw ()
{
displayMessage("pleaseWaitMsg", localSearchResults);
gLiveSupport->runMainLoop();
Ptr<GLiveSupport::PlayableList>::Ref searchResults;
try {
searchResults = gLiveSupport->search(criteria);
@ -472,9 +475,14 @@ SearchWindow :: displaySearchResults(
Ptr<WidgetFactory>::Ref widgetFactory = WidgetFactory::getInstance();
GLiveSupport::PlayableList::const_iterator it;
GLiveSupport::PlayableList::const_iterator it = searchResults->begin();
for (it = searchResults->begin(); it != searchResults->end(); ++it) {
if (it == searchResults->end()) {
displayMessage("nothingFoundMsg", treeModel);
return;
}
for ( ; it != searchResults->end(); ++it) {
Ptr<Playable>::Ref playable = *it;
Gtk::TreeModel::Row row = *treeModel->append();

View file

@ -219,6 +219,7 @@ root:table
remoteSearchErrorMsg:string { "Search failed: {0}." }
uploadToHubErrorMsg:string { "Uploading to hub failed: {0}." }
downloadFromHubErrorMsg:string { "Downloading from hub failed: {0}." }
nothingFoundMsg:string { "No files found." }
}
advancedSearchEntry:table {