File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 27
27
id = "Person Overview" ,
28
28
name = _ ("Person Overview" ),
29
29
description = _ ("Gramplet showing an overview of events for a person" ),
30
- version = '1.0.8 ' ,
30
+ version = '1.0.9 ' ,
31
31
gramps_target_version = "5.0" ,
32
32
status = STABLE ,
33
33
fname = "Overview.py" ,
41
41
id = "Family Overview" ,
42
42
name = _ ("Family Overview" ),
43
43
description = _ ("Gramplet showing an overview of events for a family" ),
44
- version = '1.0.8 ' ,
44
+ version = '1.0.9 ' ,
45
45
gramps_target_version = "5.0" ,
46
46
status = STABLE ,
47
47
fname = "Overview.py" ,
Original file line number Diff line number Diff line change @@ -144,7 +144,10 @@ def active_changed(self, handle):
144
144
145
145
def update_has_data (self ):
146
146
active_handle = self .get_active ('Person' )
147
- active = self .dbstate .db .get_person_from_handle (active_handle )
147
+ if active_handle :
148
+ active = self .dbstate .db .get_person_from_handle (active_handle )
149
+ else :
150
+ active = None
148
151
self .set_has_data (self .get_has_data (active ))
149
152
150
153
def get_has_data (self , active_person ):
@@ -198,7 +201,10 @@ def db_changed(self):
198
201
199
202
def update_has_data (self ):
200
203
active_handle = self .get_active ('Family' )
201
- active = self .dbstate .db .get_family_from_handle (active_handle )
204
+ if active_handle :
205
+ active = self .dbstate .db .get_family_from_handle (active_handle )
206
+ else :
207
+ active = None
202
208
self .set_has_data (self .get_has_data (active ))
203
209
204
210
def get_has_data (self , active_family ):
You can’t perform that action at this time.
0 commit comments