Add a gtk loop in Bookmarks.edit() and only close the Bookmark editor if gtk.RESPONSE_CLOSE is issued
0001968: twice help click on bookmark closes application svn: r10364
This commit is contained in:
parent
4209bfb402
commit
799c6a6a33
@ -254,12 +254,15 @@ class Bookmarks :
|
|||||||
self.namemodel.connect_model()
|
self.namemodel.connect_model()
|
||||||
|
|
||||||
self.modified = False
|
self.modified = False
|
||||||
|
while True:
|
||||||
self.response = self.top.run()
|
self.response = self.top.run()
|
||||||
if self.response == gtk.RESPONSE_HELP:
|
if self.response == gtk.RESPONSE_HELP:
|
||||||
self.help_clicked()
|
self.help_clicked()
|
||||||
|
elif self.response == gtk.RESPONSE_CLOSE:
|
||||||
if self.modified:
|
if self.modified:
|
||||||
self.redraw_and_report_change()
|
self.redraw_and_report_change()
|
||||||
self.top.destroy()
|
self.top.destroy()
|
||||||
|
break
|
||||||
|
|
||||||
def delete_clicked(self, obj):
|
def delete_clicked(self, obj):
|
||||||
"""Remove the current selection from the list."""
|
"""Remove the current selection from the list."""
|
||||||
@ -304,7 +307,6 @@ class Bookmarks :
|
|||||||
"""Display the relevant portion of GRAMPS manual."""
|
"""Display the relevant portion of GRAMPS manual."""
|
||||||
GrampsDisplay.help('gramps-nav', webpage=WIKI_HELP_PAGE,
|
GrampsDisplay.help('gramps-nav', webpage=WIKI_HELP_PAGE,
|
||||||
section=WIKI_HELP_SEC)
|
section=WIKI_HELP_SEC)
|
||||||
self.response = self.top.run()
|
|
||||||
|
|
||||||
class ListBookmarks(Bookmarks):
|
class ListBookmarks(Bookmarks):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user