Skip to content

Commit eeb9e07

Browse files
committed
Don't attempt to call set_orientation if self.pui is None
pui can be None if a gramplet fails to load. Fixes #13820
1 parent 96f2b6b commit eeb9e07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gramps/gui/widgets/grampletbar.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,8 @@ def set_orientation(self, orientation):
680680
"""
681681
Called when the gramplet orientation changes.
682682
"""
683-
self.pui.set_orientation(orientation)
683+
if self.pui:
684+
self.pui.set_orientation(orientation)
684685

685686

686687
# -------------------------------------------------------------------------

0 commit comments

Comments
 (0)