From 37395da262ef19b1702a5986b95ea1014252a888 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 13 Jul 2023 17:01:45 +0100 Subject: [PATCH] Avoid signal warning during editor clean up The signal no longer exists to disconnect from at this point. --- gramps/gui/editors/displaytabs/gallerytab.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gramps/gui/editors/displaytabs/gallerytab.py b/gramps/gui/editors/displaytabs/gallerytab.py index 963120a9a..b3863463b 100644 --- a/gramps/gui/editors/displaytabs/gallerytab.py +++ b/gramps/gui/editors/displaytabs/gallerytab.py @@ -215,7 +215,7 @@ class GalleryTab(ButtonTab, DbGUIElement): self.iconlist.set_selection_mode(Gtk.SelectionMode.SINGLE) # connect the signals - self.__id_connect_sel = self.iconlist.connect('selection-changed', self._selection_changed) + self.iconlist.connect('selection-changed', self._selection_changed) self.iconlist.connect('button_press_event', self.double_click) self.iconlist.connect('key_press_event', self.key_pressed) self._connect_icon_model() @@ -608,5 +608,4 @@ class GalleryTab(ButtonTab, DbGUIElement): return self.get_data().index(obj) def clean_up(self): - self.iconlist.disconnect(self.__id_connect_sel) super(ButtonTab, self).clean_up()