Fixing #1732.
This commit is contained in:
parent
8875ee0276
commit
1f8616951b
2 changed files with 11 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue