adium 5183:a16208c70e15: - Clear the window if it's closed with ...
commits at adium.im
commits at adium.im
Tue Oct 23 19:00:58 UTC 2012
details: http://hg.adium.im/adium/rev/a16208c70e15
revision: 5183:a16208c70e15
branch: adium-1.6
author: Thijs Alkemade <thijsalkemade at gmail.com>
date: Tue Oct 23 21:00:46 2012 +0200
- Clear the window if it's closed with command-W.
- Activate the chat after opening it.
diffs (29 lines):
diff -r 769e3533f488 -r a16208c70e15 Source/AINewMessagePromptController.m
--- a/Source/AINewMessagePromptController.m Tue Oct 23 19:56:15 2012 +0100
+++ b/Source/AINewMessagePromptController.m Tue Oct 23 21:00:46 2012 +0200
@@ -121,11 +121,15 @@
[adium.interfaceController openChat:chat];
+ [adium.interfaceController setActiveChat:chat];
+
[self closeWindow:nil];
}
-- (IBAction)closeWindow:(id)sender
+- (void)windowWillClose:(id)sender
{
+ [super windowWillClose:sender];
+
[field_search setStringValue:@""];
[results release];
@@ -133,7 +137,7 @@
[table_results reloadData];
- [super closeWindow:sender];
+ [[self class] destroySharedInstance];
}
- (NSString *)lastAccountIDKey
More information about the commits
mailing list