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.
This commit is contained in:
Robert Knight 2011-08-24 10:56:08 +01:00
parent 91f402afa2
commit a42e9475b5

View file

@ -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"];