summaryrefslogtreecommitdiff
path: root/src/search/SearchController.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-04 19:55:59 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-04 19:55:59 (GMT)
commit5a2da01a5b1d59bae3d1f00132230835e6803301 (patch)
treea580fe32daa8bac4acb002d32f51552a00c30e72 /src/search/SearchController.cpp
parent82d2bcc7c2fe7ae5ba40b915ce22422a36d68639 (diff)
downloadpowder-5a2da01a5b1d59bae3d1f00132230835e6803301.zip
powder-5a2da01a5b1d59bae3d1f00132230835e6803301.tar.gz
Tags, fixes #55
Diffstat (limited to 'src/search/SearchController.cpp')
-rw-r--r--src/search/SearchController.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/search/SearchController.cpp b/src/search/SearchController.cpp
index f127354..cd1e5f0 100644
--- a/src/search/SearchController.cpp
+++ b/src/search/SearchController.cpp
@@ -96,11 +96,19 @@ SearchController::~SearchController()
delete searchView;
}
-void SearchController::DoSearch(std::string query)
+void SearchController::DoSearch(std::string query, bool now)
{
nextQuery = query;
- nextQueryTime = clock()+(0.6 * CLOCKS_PER_SEC);
- nextQueryDone = false;
+ if(!now)
+ {
+ nextQueryTime = clock()+(0.6 * CLOCKS_PER_SEC);
+ nextQueryDone = false;
+ }
+ else
+ {
+ nextQueryDone = true;
+ searchModel->UpdateSaveList(1, nextQuery);
+ }
//searchModel->UpdateSaveList(1, query);
}