moved UI notification for turtle FT search results into ftServer, in order to allow easier libresAPI calls

This commit is contained in:
csoler 2018-08-24 16:12:05 +02:00
parent 7bdc61e3e3
commit 8eebe53d75
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
3 changed files with 18 additions and 2 deletions

View file

@ -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 ;
}