From 1d583ecd9913593da479745020813f9c57cb5538 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Sat, 8 Apr 2023 14:24:12 +0300 Subject: [PATCH] fix root bouquet rename --- app/ui/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui/main.py b/app/ui/main.py index 21094207..cc1cc421 100644 --- a/app/ui/main.py +++ b/app/ui/main.py @@ -3934,7 +3934,7 @@ class Application(Gtk.Application): return model.set_value(itr, Column.BQ_NAME, response) - if not model.iter_has_child(itr): + if not model.iter_parent(itr): return old_bq_name = f"{bq_name}:{bq_type}" @@ -3943,7 +3943,7 @@ class Application(Gtk.Application): self._current_bq_name = response self._bq_name_label.set_text(self._current_bq_name) self._bq_selected = bq - # services with extra names for the bouquet + # Services with extra names for the bouquet. ext_bq = self._extra_bouquets.get(old_bq_name, None) if ext_bq: self._extra_bouquets[bq] = ext_bq