mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 14:45:12 -04:00
moved UI notification for turtle FT search results into ftServer, in order to allow easier libresAPI calls
This commit is contained in:
parent
7bdc61e3e3
commit
8eebe53d75
3 changed files with 18 additions and 2 deletions
|
@ -1191,7 +1191,16 @@ void p3turtle::handleSearchResult(RsTurtleSearchResultItem *item)
|
|||
|
||||
if(ftsr!=NULL)
|
||||
{
|
||||
RsServer::notify()->notifyTurtleSearchResult(ftsr->request_id,ftsr->result) ;
|
||||
ftServer *client = dynamic_cast<ftServer*>((*it).second) ;
|
||||
|
||||
if(!client)
|
||||
{
|
||||
std::cerr << "(EE) received turtle FT search result but the service is not a ftServer!!" << std::endl;
|
||||
continue;
|
||||
}
|
||||
//RsServer::notify()->notifyTurtleSearchResult(ftsr->request_id,ftsr->result) ;
|
||||
|
||||
client->receiveSearchResult(ftsr);
|
||||
continue ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue