From a42e9475b5f0905dbf82dcc8acb891d3ebb603f8 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Wed, 24 Aug 2011 10:56:08 +0100 Subject: [PATCH] Disable the window close button in the update dialog on Mac. This prevents the dialog being closed part-way through update installation, leaving the user unable to restart the application afterwards by clicking the 'Finish' button. --- src/UpdateDialogCocoa.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/UpdateDialogCocoa.mm b/src/UpdateDialogCocoa.mm index 1a54e24..28e2bd2 100644 --- a/src/UpdateDialogCocoa.mm +++ b/src/UpdateDialogCocoa.mm @@ -70,8 +70,7 @@ void UpdateDialogCocoa::init() int height = 100; d->window = [[NSWindow alloc] initWithContentRect:NSMakeRect(200, 200, width, height) - styleMask:NSTitledWindowMask | NSClosableWindowMask | - NSMiniaturizableWindowMask + styleMask:NSTitledWindowMask | NSMiniaturizableWindowMask backing:NSBackingStoreBuffered defer:NO]; [d->window setTitle:@"Mendeley Updater"];