summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-02-28 15:54:18 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-02-28 15:54:18 (GMT)
commitc6cecf55d182344c316999acb8703293439319b7 (patch)
tree02a9f10eb86ecbfc9bbafb474c84ae85de0b6d29
parentf7fb3e6435035376af978b1d4249a744125aac8f (diff)
downloadcpython-c6cecf55d182344c316999acb8703293439319b7.zip
cpython-c6cecf55d182344c316999acb8703293439319b7.tar.gz
cpython-c6cecf55d182344c316999acb8703293439319b7.tar.bz2
Reset the resource file chain before calling PyMac_OpenPrefFile. I'm not sure why this wasn't a problem before...
-rw-r--r--Mac/Python/gusiconfig.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Mac/Python/gusiconfig.cpp b/Mac/Python/gusiconfig.cpp
index 59b55e0..ec6b57d 100644
--- a/Mac/Python/gusiconfig.cpp
+++ b/Mac/Python/gusiconfig.cpp
@@ -96,6 +96,7 @@ extern "C" void GUSISetupConfig()
resource_id = GUSIOPTIONSOVERRIDE_ID;
} else {
/* Next try normal resource from preference file */
+ UseResFile(oldrh);
prefrh = PyMac_OpenPrefFile();
h = Get1Resource('GU\267I', GUSIOPTIONS_ID);
if ( h ) {