From a3dbabf0ac5047775029b92332fb85ba5c67c56f Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 18 Nov 2001 23:44:57 +0000 Subject: [PATCH] Better handling of bad path names for read open svn: r572 --- src/gramps_main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gramps_main.py b/src/gramps_main.py index 84aa0896b..863f8e270 100755 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -482,14 +482,16 @@ def on_reports_clicked(obj): # #------------------------------------------------------------------------- def on_ok_button1_clicked(obj): - new_database_response(0) dbname = obj.get_data("dbname") getoldrev = obj.get_data("getoldrev") - filename = dbname.get_full_path(1) + filename = dbname.get_full_path(0) utils.destroy_passed_object(obj) if filename == "" or filename == None: return + + if os.path.isdir(filename): + new_database_response(0) if getoldrev.get_active(): vc = VersionControl.RcsVersionControl(filename)