From 81ae73135ca613473253f5a16a152810c091bf04 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 8 Jul 2001 14:38:53 +0000 Subject: [PATCH] Fixed config box setting problems svn: r239 --- NEWS | 3 +++ src/Config.py | 13 ++++++++++--- src/const.py | 4 ++-- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index ec825ed83..cf9817ccf 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +Version 0.4.0 + + Version 0.3.2 * Fixed Style Editor on WebPage.py, to allow styles to be edited. * WebPage generator now lists more information, including sources. diff --git a/src/Config.py b/src/Config.py index f22ae90b0..72185906c 100644 --- a/src/Config.py +++ b/src/Config.py @@ -349,15 +349,15 @@ def on_propertybox_apply(obj,page): status_bar = 2 dbdir_temp = prefsTop.get_widget("dbdir").get_full_path(1) - if os.path.isdir(dbdir_temp): + if dbdir_temp != None and os.path.isdir(dbdir_temp): db_dir = os.path.normpath(dbdir_temp) + os.sep repdir_temp = prefsTop.get_widget("repdir").get_full_path(1) - if os.path.isdir(repdir_temp): + if repdir_temp != None and os.path.isdir(repdir_temp): report_dir = os.path.normpath(repdir_temp) + os.sep webdir_temp = prefsTop.get_widget("htmldir").get_full_path(1) - if os.path.isdir(webdir_temp): + if webdir_temp != None and os.path.isdir(webdir_temp): web_dir = os.path.normpath(webdir_temp) + os.sep paper_preference = paper_obj.get_data("d") @@ -507,6 +507,13 @@ def display_preferences_box(): detail.set_active(show_detail) tabs.set_active(usetabs) + if status_bar == 0: + prefsTop.get_widget("stat1").set_active(1) + elif status_bar == 1: + prefsTop.get_widget("stat2").set_active(1) + else: + prefsTop.get_widget("stat3").set_active(1) + display_attr_obj.set_active(display_attr) prefsTop.get_widget("attr_name").set_text(attr_name) diff --git a/src/const.py b/src/const.py index 28b79d9b7..502c0a678 100644 --- a/src/const.py +++ b/src/const.py @@ -30,8 +30,8 @@ _ = intl.gettext # #------------------------------------------------------------------------- editor = "gimp" -zipcmd = "/usr/bin/zip -r -q" -convert = "/usr/X11R6/bin/convert" +zipcmd = "zip -r -q" +convert = "convert" #------------------------------------------------------------------------- #