cocoa: Close sheet after image file selection
authorAndreas Färber <andreas.faerber@web.de>
Sun, 30 Oct 2011 22:19:54 +0000 (23:19 +0100)
committerAndreas Färber <andreas.faerber@web.de>
Tue, 1 Nov 2011 19:41:06 +0000 (20:41 +0100)
commite0b3851957316acb8724cce261ef586a49844b17
treefff4fdc354819016d47e9e275cc100990357dbc7
parent5dffe6f3a98209fba5b1fe7b54a2a3be5d237eac
cocoa: Close sheet after image file selection

If no disk image is specified, the Cocoa frontend displays a modal sheet
to let the user select an image file to boot from.

This sheet is never closed and it permanently obscures the emulator window.

Close it after obtaining the file name in case the user did select a file.
Otherwise we exit immediately, so no need to close then.

Signed-off-by: Juan Pineda <juan@logician.com>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
ui/cocoa.m