From c95182ee08f6c6b4a8f43f9e658e36f31534a5e3 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 7 Jan 2002 02:57:26 +0000 Subject: [PATCH] Only add a reference to the reference list once. svn: r686 --- gramps/src/ImageSelect.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gramps/src/ImageSelect.py b/gramps/src/ImageSelect.py index f3c51bff6..9709b03a0 100644 --- a/gramps/src/ImageSelect.py +++ b/gramps/src/ImageSelect.py @@ -590,6 +590,7 @@ class GlobalMediaProperties: self.lists_changed = 0 self.db = db self.update = update + self.refs = 0 self.path = self.db.getSavePath() self.change_dialog = libglade.GladeXML(const.imageselFile,"change_global") @@ -672,6 +673,9 @@ class GlobalMediaProperties: data[0](data[1],data[2]) def display_refs(self): + if self.refs == 1: + return + self.refs = 1 index = 0 ref = self.change_dialog.get_widget("refinfo") ref.connect('button-press-event',self.button_press)