From 05bd76ad0b7f55a2104dde2fc4519dce8cb0f181 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Sat, 27 Sep 2014 13:06:31 +0200 Subject: [PATCH] =?UTF-8?q?Make=20=E2=80=9CRestore=20Session=E2=80=9D=20de?= =?UTF-8?q?fault=20for=20session=20restore=20dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since disabling session restore will discard user data, it should not be default. --- Applications/TextMate/src/AppController.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/TextMate/src/AppController.mm b/Applications/TextMate/src/AppController.mm index 110f44c5..81ca6c0d 100644 --- a/Applications/TextMate/src/AppController.mm +++ b/Applications/TextMate/src/AppController.mm @@ -242,8 +242,8 @@ BOOL HasDocumentWindow (NSArray* windows) if(promptUser) { - NSInteger choice = NSRunAlertPanel(@"Disable Session Restore?", @"%@", @"Disable", @"Restore Documents", nil, promptUser); - if(choice == NSAlertDefaultReturn) // "Disable" + NSInteger choice = NSRunAlertPanel(@"Disable Session Restore?", @"%@", @"Restore Documents", @"Disable", nil, promptUser); + if(choice == NSAlertAlternateReturn) // "Disable" restoreSession = NO; }