Skip to content

Commit 8922b82

Browse files
committed
Fixed unspecified allocation in activity header
1 parent 6058271 commit 8922b82

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

activity_browser/layouts/pages/activity_details/activity_header.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def enabled_setup(self):
9393

9494
def disabled_setup(self):
9595
setup = [
96-
("Name:", QtWidgets.QLabel(self.activity.get("name"), self),),
97-
("Location:", QtWidgets.QLabel(self.activity.get("location"), self),),
96+
("Name:", QtWidgets.QLabel(self.activity.get("name", "unspecified"), self),),
97+
("Location:", QtWidgets.QLabel(self.activity.get("location", "unspecified"), self),),
9898
]
9999

100100
if isinstance(self.activity, bf.Process):
@@ -104,7 +104,7 @@ def disabled_setup(self):
104104

105105
# Add allocation strategy selector if the activity is multifunctional
106106
if self.activity.get("type") == "multifunctional":
107-
setup.append(("Allocation:", QtWidgets.QLabel(self.activity.get("allocation"), self),),)
107+
setup.append(("Allocation:", QtWidgets.QLabel(self.activity.get("allocation", "unspecified"), self),),)
108108

109109
return setup
110110

0 commit comments

Comments
 (0)