* 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

@@ -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