summaryrefslogtreecommitdiff
path: root/src/search/SearchModel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/search/SearchModel.h')
-rw-r--r--src/search/SearchModel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search/SearchModel.h b/src/search/SearchModel.h
index 343e259..08f04b7 100644
--- a/src/search/SearchModel.h
+++ b/src/search/SearchModel.h
@@ -56,9 +56,9 @@ public:
int GetPageCount() { return max(1, (int)(ceil(resultCount/16))); }
int GetPageNum() { return currentPage; }
std::string GetLastQuery() { return lastQuery; }
- void SetSort(string sort) { currentSort = sort; notifySortChanged(); }
+ void SetSort(string sort) { if(!updateSaveListWorking) { currentSort = sort; } notifySortChanged(); }
string GetSort() { return currentSort; }
- void SetShowOwn(bool show) { if(show!=showOwn) { showOwn = show; } notifyShowOwnChanged(); }
+ void SetShowOwn(bool show) { if(!updateSaveListWorking) { if(show!=showOwn) { showOwn = show; } } notifyShowOwnChanged(); }
bool GetShowOwn() { return showOwn; }
void SetShowFavourite(bool show) { if(show!=showFavourite) { showFavourite = show; } notifyShowFavouriteChanged(); }
bool GetShowFavourite() { return showFavourite; }