summaryrefslogtreecommitdiff
path: root/src/search/SearchView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/search/SearchView.cpp')
-rw-r--r--src/search/SearchView.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/search/SearchView.cpp b/src/search/SearchView.cpp
index bad2474..1322c4b 100644
--- a/src/search/SearchView.cpp
+++ b/src/search/SearchView.cpp
@@ -260,7 +260,10 @@ void SearchView::Search(std::string query)
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)