From 3541ecb2ff98c01c2085b975c8f50e945267773f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20LeBlanc?= Date: Tue, 18 Jun 2013 12:03:22 -0400 Subject: [PATCH] Mac client: close app on window close. Renamed header. --- client/Mac/MRDPView.m | 1 + client/Mac/cli/AppDelegate.m | 7 ++++++- client/Mac/{mf_interface.h => mf_client.h} | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) rename client/Mac/{mf_interface.h => mf_client.h} (95%) diff --git a/client/Mac/MRDPView.m b/client/Mac/MRDPView.m index a9244ad84..8a0620d13 100644 --- a/client/Mac/MRDPView.m +++ b/client/Mac/MRDPView.m @@ -42,6 +42,7 @@ * - */ +#include "mf_client.h" #import "MRDPView.h" #import "MRDPCursor.h" #import "PasswordDialog.h" diff --git a/client/Mac/cli/AppDelegate.m b/client/Mac/cli/AppDelegate.m index 8fca18cb7..9bc7ce5cb 100644 --- a/client/Mac/cli/AppDelegate.m +++ b/client/Mac/cli/AppDelegate.m @@ -19,7 +19,7 @@ @synthesize mrdpView = mrdpView; -- (void)applicationDidFinishLaunching:(NSNotification*)aNotification +- (void) applicationDidFinishLaunching:(NSNotification*)aNotification { [mrdpView rdpConnect]; } @@ -29,4 +29,9 @@ [mrdpView releaseResources]; } +- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender +{ + return YES; +} + @end diff --git a/client/Mac/mf_interface.h b/client/Mac/mf_client.h similarity index 95% rename from client/Mac/mf_interface.h rename to client/Mac/mf_client.h index 9ddb6c2ac..711c77b47 100755 --- a/client/Mac/mf_interface.h +++ b/client/Mac/mf_client.h @@ -19,8 +19,8 @@ * limitations under the License. */ -#ifndef __MF_INTERFACE_H -#define __MF_INTERFACE_H +#ifndef __MF_CLIENT_H +#define __MF_CLIENT_H #include