9094: Double-clicking on a source causes exception : better solution.
This commit is contained in:
parent
37a4d19a92
commit
c163bfc18e
@ -246,8 +246,8 @@ class Citations(Gramplet, DbGUIElement):
|
|||||||
# bug 9094.
|
# bug 9094.
|
||||||
# str(model.get_path(iter_)) return something like NNN:MMM
|
# str(model.get_path(iter_)) return something like NNN:MMM
|
||||||
# So if we have only NNN, it's a node
|
# So if we have only NNN, it's a node
|
||||||
path = str(model.get_path(iter_))
|
# removing the str() solves the problem.
|
||||||
if path.find(':') == -1: # we don't have ':' in the returned string.
|
if len(model.get_path(iter_)) == 1:
|
||||||
self.edit_source(handle)
|
self.edit_source(handle)
|
||||||
else:
|
else:
|
||||||
self.edit_citation(handle)
|
self.edit_citation(handle)
|
||||||
|
Loading…
Reference in New Issue
Block a user