@@ -505,15 +505,9 @@ def selectTally(self, tally_label=None):
505505 self .score_map = {}
506506 self .scoresListWidget .clear ()
507507
508- sorted_scores = sorted (tally .scores )
509- # always put total first if present
510- if 'total' in sorted_scores :
511- idx = sorted_scores .index ('total' )
512- sorted_scores .insert (0 , sorted_scores .pop (idx ))
513-
514- for score in sorted_scores :
508+ for score in tally .scores :
515509 ql = QListWidgetItem ()
516- ql .setText (score . capitalize () )
510+ ql .setText (score )
517511 ql .setCheckState (QtCore .Qt .Unchecked )
518512 if not spatial_filters :
519513 ql .setFlags (QtCore .Qt .ItemIsUserCheckable )
@@ -635,14 +629,6 @@ def updateScores(self):
635629 score_box .setFlags (QtCore .Qt .ItemIsUserCheckable |
636630 QtCore .Qt .ItemIsEnabled |
637631 QtCore .Qt .ItemIsSelectable )
638- elif 'total' in applied_scores :
639- self .model .appliedScores = ('total' ,)
640- # if total is selected, disable all other scores
641- for score , score_box in self .score_map .items ():
642- if score != 'total' :
643- score_box .setFlags (QtCore .Qt .ItemIsUserCheckable )
644- score_box .setToolTip (
645- "De-select 'total' to enable other scores" )
646632 else :
647633 # get units of applied scores
648634 selected_units = _SCORE_UNITS .get (
0 commit comments