* src/GrampsCfg.py (GrampsPreferences.select): Conditional get_path().
* src/Plugins.py (PluginDialog.on_node_selected): Likewise. svn: r1858
This commit is contained in:
parent
895a6b9d6a
commit
568068e47b
@ -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>
|
||||
* src/Relationship.py: Fix '[...]teenth' relationship name typos.
|
||||
* src/RelLib.py: Fix for probablyAlive(). If there is no date, but
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@ -765,7 +765,8 @@ class GrampsPreferences:
|
||||
|
||||
def select(self,obj):
|
||||
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):
|
||||
self.panel.set_current_page(self.imap[path])
|
||||
|
||||
|
@ -179,7 +179,8 @@ class PluginDialog:
|
||||
the dialog box with the description of the selected report"""
|
||||
|
||||
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):
|
||||
self.statbox.hide()
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user