aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m6
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];