Skip to content

Commit

Permalink
Fix report dialog error when no active person selected
Browse files Browse the repository at this point in the history
Running a report from the reports dialog with no active person
selected caused an error.

Fixes #13020.
  • Loading branch information
Nick-Hall committed Sep 8, 2023
1 parent cbca089 commit b3fc97b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gramps/gui/plug/_dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,10 @@ def run_plugin(self, pdata):
return

if pdata.ptype == REPORT:
active_handle = self.uistate.get_active("Person")
report(
self.state,
self.uistate,
self.state.db.get_person_from_handle(active_handle),
self.uistate.get_active("Person"),
getattr(mod, pdata.reportclass),
getattr(mod, pdata.optionclass),
pdata.name,
Expand Down

0 comments on commit b3fc97b

Please sign in to comment.