Taapeli / isotammi-addons

Gramps addons for Isotammi project / Isotammen Gramps-lisäosia
8 stars 3 forks source link

Filter+ Reset button gives Unhandled exception for Categories without a birthplace #22

Closed emyoulation closed 7 months ago

emyoulation commented 7 months ago

In the Filter+ gramplet, the Reset button tries to clear a self.entry_birth_place.set_text("") in categories without a birth place field. Errors in Families, Events, Places, Geography, Places, Sources, Citations, Repositories, Media, Notes (no error in People, Relationships, Charts)

17369536: ERROR: grampsapp.py: line 173: Unhandled exception
Traceback (most recent call last):
  File "/home/districtsupport/.gramps/gramps51/plugins/Filter+/filter+.py", line 134, in reset_clicked
    self.entry_birth_place.set_text("")
    ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'SidebarFilterPlus' object has no attribute 'entry_birth_place'
kkujansuu commented 7 months ago

Oh no, another stupid mistake from me! Fixed. Thanks.