Use original naming for sorting button in save search, fixes #155

This commit is contained in:
Simon Robertshaw 2012-09-01 18:25:03 +01:00
parent ba55da77a9
commit d9f9e88ee4

View File

@ -260,7 +260,10 @@ void SearchView::Search(std::string query)
void SearchView::NotifySortChanged(SearchModel * sender) void SearchView::NotifySortChanged(SearchModel * sender)
{ {
sortButton->SetText("Show "+sender->GetSort()); if(sender->GetSort() == "best")
sortButton->SetText("By votes");
else
sortButton->SetText("By date");
} }
void SearchView::NotifyShowOwnChanged(SearchModel * sender) void SearchView::NotifyShowOwnChanged(SearchModel * sender)