Opened 6 years ago

Closed 6 years ago

#6627 closed (fixed)

clear method of SortedDict doesn't update keyOrder

Reported by: samuel@… Owned by: nobody
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:


Calling the "clear" method of SortedDict doesn't clear the keyOrder list. Quick fix though:

def clear(self):
    super(SortedDict, self).clear()
    self.keyOrder = []

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [7140]) Fixed #6627 -- Made dict.clear() work for SortedDicts.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.