* src/PageView.py (button_press): Catch problem with no loaded database

* src/PersonView.py (button_press): Catch problem with no loaded database
* src/GrampsDbBase.py (_get_from_handle): Catch problem with no loaded database
* src/MapView.py: Updates


svn: r5197
This commit is contained in:
Martin Hawlisch
2005-09-16 13:18:52 +00:00
parent 996b7be086
commit 0307d94b86
4 changed files with 103 additions and 47 deletions

View File

@ -402,8 +402,9 @@ class ListView(PageView):
return True
elif event.type == gtk.gdk.BUTTON_PRESS and event.button == 3:
menu = self.uistate.uimanager.get_widget('/Popup')
menu.popup(None,None,None,event.button,event.time)
return True
if menu:
menu.popup(None,None,None,event.button,event.time)
return True
return False
def key_press(self,obj,event):