]> git.proxmox.com Git - qemu.git/commit
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)
commit13766eb1e46452affd12f2b944730e136c6a2dda
treefff4fdc354819016d47e9e275cc100990357dbc7
parentdb529aabfac17201d3647384abf89fc7f272b493
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