From 441c76e434e46ea0ca346b185bb0d8e96e70c508 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Tue, 16 Jul 2024 16:10:14 +0200 Subject: [PATCH] fix bad merge (#46) --- pg_service_parser/gui/dlg_pg_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pg_service_parser/gui/dlg_pg_service.py b/pg_service_parser/gui/dlg_pg_service.py index d9437f1..bf9c27e 100644 --- a/pg_service_parser/gui/dlg_pg_service.py +++ b/pg_service_parser/gui/dlg_pg_service.py @@ -17,6 +17,7 @@ ) from pg_service_parser.gui.dlg_service_name import ServiceNameDialog from pg_service_parser.gui.dlg_service_settings import ServiceSettingsDialog +from pg_service_parser.gui.item_delegates import ServiceConfigDelegate from pg_service_parser.utils import get_ui_class DIALOG_UI = get_ui_class("pg_service_dialog.ui") @@ -204,6 +205,7 @@ def __edit_service_changed(self, index): target_service, service_config(target_service, self.__conf_file_path) ) self.tblServiceConfig.setModel(self.__edit_model) + self.tblServiceConfig.setItemDelegate(ServiceConfigDelegate(self)) self.tblServiceConfig.selectionModel().selectionChanged.connect( self.__update_settings_buttons )