* src/GrampsCfg.py (GrampsPreferences.select): Conditional get_path().

* src/Plugins.py (PluginDialog.on_node_selected): Likewise.


svn: r1858
This commit is contained in:
Alex Roitman 2003-07-11 01:12:22 +00:00
parent 56754c2f0b
commit d343ec62da
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2003-07-10 Alex Roitman <shura@alex.neuro.umn.edu>
* src/GrampsCfg.py (GrampsPreferences.select): Conditional get_path().
* src/Plugins.py (PluginDialog.on_node_selected): Likewise.
2003-07-10 Tim Waugh <twaugh@redhat.com> 2003-07-10 Tim Waugh <twaugh@redhat.com>
* src/Relationship.py: Fix '[...]teenth' relationship name typos. * src/Relationship.py: Fix '[...]teenth' relationship name typos.
* src/RelLib.py: Fix for probablyAlive(). If there is no date, but * src/RelLib.py: Fix for probablyAlive(). If there is no date, but

View File

@ -1,7 +1,7 @@
# #
# Gramps - a GTK+/GNOME based genealogy program # Gramps - a GTK+/GNOME based genealogy program
# #
# Copyright (C) 2000 Donald N. Allingham # Copyright (C) 2000-2003 Donald N. Allingham
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -765,7 +765,8 @@ class GrampsPreferences:
def select(self,obj): def select(self,obj):
store,iter = self.selection.get_selected() store,iter = self.selection.get_selected()
path = store.get_path(iter) if iter:
path = store.get_path(iter)
if iter and self.imap.has_key(path): if iter and self.imap.has_key(path):
self.panel.set_current_page(self.imap[path]) self.panel.set_current_page(self.imap[path])

View File

@ -179,7 +179,8 @@ class PluginDialog:
the dialog box with the description of the selected report""" the dialog box with the description of the selected report"""
store,iter = self.selection.get_selected() store,iter = self.selection.get_selected()
path = store.get_path(iter) if iter:
path = store.get_path(iter)
if not iter or not self.imap.has_key(path): if not iter or not self.imap.has_key(path):
self.statbox.hide() self.statbox.hide()
return return