GTG

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

Bug #1079143 reported by Izidor Matušov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
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'

Tags: love

Related branches

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.