Prevent changing of sorting mode when results haven't loaded. Fixes #172
This commit is contained in:
parent
c9caade1c3
commit
b7616a91d8
@ -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; }
|
||||
|
@ -417,9 +417,11 @@ void SearchView::NotifySaveListChanged(SearchModel * sender)
|
||||
{
|
||||
nextButton->Enabled = false;
|
||||
previousButton->Enabled = false;
|
||||
sortButton->Enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
sortButton->Enabled = true;
|
||||
nextButton->Enabled = true;
|
||||
previousButton->Enabled = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user