Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6cecf5

Browse files
committed
Reset the resource file chain before calling PyMac_OpenPrefFile. I'm not sure why this wasn't a problem before...
1 parent f7fb3e6 commit c6cecf5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Mac/Python/gusiconfig.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ extern "C" void GUSISetupConfig()
9696
resource_id = GUSIOPTIONSOVERRIDE_ID;
9797
} else {
9898
/* Next try normal resource from preference file */
99+
UseResFile(oldrh);
99100
prefrh = PyMac_OpenPrefFile();
100101
h = Get1Resource('GU\267I', GUSIOPTIONS_ID);
101102
if ( h ) {

0 commit comments

Comments
 (0)