aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowManagement.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPWindowManagement.m')
-rw-r--r--Source/SPWindowManagement.m14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/SPWindowManagement.m b/Source/SPWindowManagement.m
index 022ad7fa..c30a2826 100644
--- a/Source/SPWindowManagement.m
+++ b/Source/SPWindowManagement.m
@@ -116,13 +116,13 @@
[[[self frontDocumentWindow] windowController] addNewConnection:self];
// Get the state of the previously-frontmost document
- NSDictionary *allStateDetails = [NSDictionary dictionaryWithObjectsAndKeys:
- @YES, @"connection",
- @YES, @"history",
- @YES, @"session",
- @YES, @"query",
- @YES, @"password",
- nil];
+ NSDictionary *allStateDetails = @{
+ @"connection" : @YES,
+ @"history" : @YES,
+ @"session" : @YES,
+ @"query" : @YES,
+ @"password" : @YES
+ };
NSMutableDictionary *frontState = [NSMutableDictionary dictionaryWithDictionary:[theFrontDocument stateIncludingDetails:allStateDetails]];