summaryrefslogtreecommitdiff
path: root/src/search/SearchController.cpp
diff options
context:
space:
mode:
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);
}