diff options
| author | Simon 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) |
| commit | 5a2da01a5b1d59bae3d1f00132230835e6803301 (patch) | |
| tree | a580fe32daa8bac4acb002d32f51552a00c30e72 /src/search/SearchController.cpp | |
| parent | 82d2bcc7c2fe7ae5ba40b915ce22422a36d68639 (diff) | |
| download | powder-5a2da01a5b1d59bae3d1f00132230835e6803301.zip powder-5a2da01a5b1d59bae3d1f00132230835e6803301.tar.gz | |
Tags, fixes #55
Diffstat (limited to 'src/search/SearchController.cpp')
| -rw-r--r-- | src/search/SearchController.cpp | 14 |
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); } |
