diff options
Diffstat (limited to 'src/search/SearchModel.cpp')
| -rw-r--r-- | src/search/SearchModel.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/search/SearchModel.cpp b/src/search/SearchModel.cpp index 494d490..16a99d4 100644 --- a/src/search/SearchModel.cpp +++ b/src/search/SearchModel.cpp @@ -1,18 +1,26 @@ #include "SearchModel.h" #include "Save.h" +#include "client/Client.h" + SearchModel::SearchModel() { } void SearchModel::UpdateSaveList() { + lastError = ""; saveList.clear(); notifySaveListChanged(); - for(int i = 0; i < 16; i++) + saveList = Client::Ref().SearchSaves(0, 12, "", ""); + if(!saveList.size()) { - saveList.push_back(Save(2198, 2333, 315, "dima-gord", "Destroyable city 5 (wth metro)")); + lastError = Client::Ref().GetLastError(); } + /*for(int i = 0; i < 16; i++) + { + saveList.push_back(Save(2198, 2333, 315, "dima-gord", "Destroyable city 5 (wth metro)")); + }*/ notifySaveListChanged(); } |
