diff --git a/src/ui/RequestInterface.cpp b/src/ui/RequestInterface.cpp index e45b2da747a06bd892b883438a1c3b9498cc1abd..e84a2fb1c449d56ad00e003dcb7ed30fdda46e96 100644 --- a/src/ui/RequestInterface.cpp +++ b/src/ui/RequestInterface.cpp @@ -140,7 +140,7 @@ void RequestInterface::searchClicked() } //Do a like search on title, artist, and album on DB - Wt::Dbo::collection> trackOptions = sqlSession.find(std::string("where tracks.name like \"%")+searchBox->text().toUTF8()+std::string("%\" OR tracks.artist like \"%")+searchBox->text().toUTF8()+std::string("%\" OR tracks.album like \"%")+searchBox->text().toUTF8()+std::string("%\"")); + Wt::Dbo::collection> trackOptions = sqlSession.find(std::string("where tracks.name like \"%")+searchBox->text().toUTF8()+std::string("%\" OR tracks.artist like \"%")+searchBox->text().toUTF8()+std::string("%\" OR tracks.album like \"%")+searchBox->text().toUTF8()+std::string("%\"")).limit(49); //Make sure all items are gone for(RequestItem* item: foundItems) @@ -167,7 +167,7 @@ void RequestInterface::searchClicked() } else { - searchBox->setText("Not enough/too many results"); + searchBox->setText("Not enough results"); } searchTransaction.commit(); }