]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Reset the resource file chain before calling PyMac_OpenPrefFile. I'm not sure why...
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 28 Feb 2001 15:54:18 +0000 (15:54 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 28 Feb 2001 15:54:18 +0000 (15:54 +0000)
Mac/Python/gusiconfig.cpp

index 59b55e0bf0f24d6196e2e0e977421b24340e4f92..ec6b57d5786fde33866109cc22b392e156de1073 100644 (file)
@@ -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 ) {