sort order reverses #90
Labels
C-bug
Category: Bug, an acknowledged defect in the program
M-relnotes
Misc: Issue should be listed in the version history for its milestone
M-svn
Misc: Issue was carried over from the old SVN repo
Milestone
svn
When using sort by selected, after activating or deactivating a mod, each subsequent mod activated or deactivated will reverse the sort order. The fix is included here below.
On line 1055 in basher.py under def checkUncheckMod(self, *mods), add:
to the if statement block. My hypothesis is that if this line is not added, every time GetSortSettings() is called as a result of these dirty sorts, with the way GetSortSettings is written, it will be interpreted as the column being clicked on to be sorted (i.e "reverse == -1 and col == self.sort" is true in the next function defined in basher.py "def GetSortSettings(self,col,reverse)." The fix works as far as I can tell, but I have not exhaustively searched the code to make sure that is what was happening.
This is the offending if check in "checkUncheckMod()"
The entire function is included next, and the fix is on the final line.
The text was updated successfully, but these errors were encountered: