Only add a reference to the reference list once.
svn: r686
This commit is contained in:
parent
319570b7c7
commit
c95182ee08
@ -590,6 +590,7 @@ class GlobalMediaProperties:
|
|||||||
self.lists_changed = 0
|
self.lists_changed = 0
|
||||||
self.db = db
|
self.db = db
|
||||||
self.update = update
|
self.update = update
|
||||||
|
self.refs = 0
|
||||||
|
|
||||||
self.path = self.db.getSavePath()
|
self.path = self.db.getSavePath()
|
||||||
self.change_dialog = libglade.GladeXML(const.imageselFile,"change_global")
|
self.change_dialog = libglade.GladeXML(const.imageselFile,"change_global")
|
||||||
@ -672,6 +673,9 @@ class GlobalMediaProperties:
|
|||||||
data[0](data[1],data[2])
|
data[0](data[1],data[2])
|
||||||
|
|
||||||
def display_refs(self):
|
def display_refs(self):
|
||||||
|
if self.refs == 1:
|
||||||
|
return
|
||||||
|
self.refs = 1
|
||||||
index = 0
|
index = 0
|
||||||
ref = self.change_dialog.get_widget("refinfo")
|
ref = self.change_dialog.get_widget("refinfo")
|
||||||
ref.connect('button-press-event',self.button_press)
|
ref.connect('button-press-event',self.button_press)
|
||||||
|
Loading…
Reference in New Issue
Block a user