From 03979a8beaf6aaa2796b6546f676dc8d50bc5f67 Mon Sep 17 00:00:00 2001 From: Dylan Jeannin Date: Mon, 26 Oct 2026 11:50:22 +0100 Subject: [PATCH] Frictions: display reach name in addition to the rk in combobox --- src/View/Frictions/Table.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/View/Frictions/Table.py b/src/View/Frictions/Table.py index 48f5ca63..ce8077bd 100644 --- a/src/View/Frictions/Table.py +++ b/src/View/Frictions/Table.py @@ -105,9 +105,19 @@ class ComboBoxDelegate(QItemDelegate): strickler ) elif self._mode == "rk": - self.editor.addItems( - list(map(str, self._data.reach.get_rk())) - ) + if self._data is None: + self.editor.addItems( + ["-"] + ) + else: + self.editor.addItems( + list( + map( + lambda p: p.display_name(), + self._data.reach.profiles + ) + ) + ) self.editor.setCurrentText(str(index.data(Qt.DisplayRole))) return self.editor