summaryrefslogtreecommitdiff
path: root/src/search/SearchView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-01 17:25:03 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-01 17:25:03 (GMT)
commitd9f9e88ee40a95ae3c58c668927bdac52aab1773 (patch)
tree4e915ec69f41a331f2abac6f3c3ef54002f8104d /src/search/SearchView.cpp
parentba55da77a9dd2ed4fd7ce87adb2fc6622d130238 (diff)
downloadpowder-d9f9e88ee40a95ae3c58c668927bdac52aab1773.zip
powder-d9f9e88ee40a95ae3c58c668927bdac52aab1773.tar.gz
Use original naming for sorting button in save search, fixes #155
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)