diff --git a/hamster_gtk/tracking/screens.py b/hamster_gtk/tracking/screens.py index 690d97c0..1688e1fe 100644 --- a/hamster_gtk/tracking/screens.py +++ b/hamster_gtk/tracking/screens.py @@ -323,7 +323,7 @@ def add_row_widgets(row_index, activity): """ def get_label(activity): """Label representing the activity/category combination.""" - label = Gtk.Label(helpers.serialize_activity(activity)) + label = Gtk.Label(helpers.serialize_activity(activity, none_category='')) label.set_halign(Gtk.Align.START) return label @@ -335,14 +335,14 @@ def get_copy_button(activity): actually starting the tracking. """ button = Gtk.Button('Copy') - activity = helpers.serialize_activity(activity) + activity = helpers.serialize_activity(activity, none_category='') button.connect('clicked', self._on_copy_button, activity) return button def get_start_button(activity): """A button that will start a new ongoing fact based on that activity.""" button = Gtk.Button('Start') - activity = helpers.serialize_activity(activity) + activity = helpers.serialize_activity(activity, none_category='') button.connect('clicked', self._on_start_button, activity) return button