Adding the same custom color in tag editor multiple times raises an Exception

Bug #1079143 reported by Izidor Matušov on 2012-11-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
Medium
Parin Porecha

Bug Description

Steps to reproduce:
1) Open tag editor
2) Add custom color #000000 (black)
3) Again, add custom color #000000 (black) -- the same color
(The black color is added two times)
4) Again, add custom color #000000 (black) -- the same color

It raises traceback:
Traceback (most recent call last):
  File "/home/izidor/projects/gtg/trunk/GTG/gtk/browser/simple_color_selector.py", line 276, in on_color_add
    self.add_custom_color(strcolor)
  File "/home/izidor/projects/gtg/trunk/GTG/gtk/browser/simple_color_selector.py", line 310, in add_custom_color
    self.__build_custom_palette()
  File "/home/izidor/projects/gtg/trunk/GTG/gtk/browser/simple_color_selector.py", line 208, in __build_custom_palette
    self.__reset_custom_palette()
  File "/home/izidor/projects/gtg/trunk/GTG/gtk/browser/simple_color_selector.py", line 202, in __reset_custom_palette
    self.buttons_lookup.pop(button.color)
KeyError: '#000000'

Related branches

Changed in gtg:
assignee: nobody → Parin Porecha (parinporecha)
Izidor Matušov (izidor) on 2013-01-13
Changed in gtg:
status: Confirmed → Fix Committed
Nimit Shah (nimit-svnit) on 2013-11-25
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers