* src/DbPrompter.py: added a .grdb if not specified.
svn: r3149
This commit is contained in:
parent
62be72e287
commit
9d1890dc84
@ -1,3 +1,6 @@
|
||||
2004-05-09 Don Allingham <donaldallingham@users.sourceforge.net>
|
||||
* src/DbPrompter.py: added a .grdb if not specified.
|
||||
|
||||
2004-05-09 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||
* src/plugins/PatchNames.py: Clean up conversion to db.
|
||||
* src/plugins/patchnames.glade: HIGify dialog.
|
||||
|
@ -40,6 +40,7 @@ import GrampsCfg
|
||||
import gnome
|
||||
import QuestionDialog
|
||||
from gettext import gettext as _
|
||||
import os
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -114,6 +115,8 @@ class DbPrompter:
|
||||
response = choose.run()
|
||||
if response == gtk.RESPONSE_OK:
|
||||
filename = choose.get_filename()
|
||||
if save and os.path.splitext(filename)[1] != ".grdb":
|
||||
filename = filename + ".grdb"
|
||||
self.db.read_file(filename)
|
||||
choose.destroy()
|
||||
return 1
|
||||
|
Loading…
Reference in New Issue
Block a user