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 /Source/TableDocument.m | |
parent | a5965bf35d2ed4d11a4d7abc657cf3195e89f829 (diff) | |
download | sequelpro-release-0.9.8.1.tar.gz sequelpro-release-0.9.8.1.tar.bz2 sequelpro-release-0.9.8.1.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
Diffstat (limited to 'Source/TableDocument.m')
-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]; |