diff options
author | rowanbeentje <rowan@beent.je> | 2010-09-26 00:22:07 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-09-26 00:22:07 +0000 |
commit | b0b3f33cef18976b844b2dae7603b9b2bfbf79ca (patch) | |
tree | cd0fdfa28a543fac3c1c73b693ce251d489897df | |
parent | a5965bf35d2ed4d11a4d7abc657cf3195e89f829 (diff) | |
download | sequelpro-b0b3f33cef18976b844b2dae7603b9b2bfbf79ca.tar.gz sequelpro-b0b3f33cef18976b844b2dae7603b9b2bfbf79ca.tar.bz2 sequelpro-b0b3f33cef18976b844b2dae7603b9b2bfbf79ca.zip |
- Fix issues with represented file URLs causing exceptions on 10.5.8 (see http://spbug.com/l/192 and related logs). Note this is a fix directly on the 0.9.8 branch as trunk has already fixed the problem during the tabs rework.release-0.9.8.1
-rw-r--r-- | Source/TableDocument.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index b12e9af2..dddd6993 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -648,9 +648,13 @@ // Set the fileURL and init the preferences (query favs, filters, and history) if available for that URL [self setFileURL:[[SPQueryController sharedQueryController] registerDocumentWithFileURL:[self fileURL] andContextInfo:spfPreferences]]; + [tableWindow setRepresentedURL:[self fileURL]]; // ...but hide the icon while the document is temporary - if ([self isUntitled]) [[tableWindow standardWindowButton:NSWindowDocumentIconButton] setImage:nil]; + if ([self isUntitled]) { + [[tableWindow standardWindowButton:NSWindowDocumentIconButton] setImage:nil]; + [tableWindow setRepresentedURL:nil]; + } // Set the connection encoding NSString *encodingName = [prefs objectForKey:SPDefaultEncoding]; |