qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <andreas.faerber@web.de>
To: qemu-devel@nongnu.org
Cc: "Andreas Färber" <andreas.faerber@web.de>,
	"Juan Pineda" <juan@logician.com>
Subject: [Qemu-devel] [PATCH v2 4/4] cocoa: Close sheet after image file selection
Date: Mon, 31 Oct 2011 20:18:02 +0100	[thread overview]
Message-ID: <1320088682-12958-5-git-send-email-andreas.faerber@web.de> (raw)
In-Reply-To: <1320088682-12958-1-git-send-email-andreas.faerber@web.de>

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 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ui/cocoa.m b/ui/cocoa.m
index d9e4e3d..0711205 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -811,6 +811,8 @@ QemuCocoaView *cocoaView;
 
         char **argv = (char**)malloc( sizeof(char*)*3 );
 
+        [sheet close];
+
         asprintf(&argv[0], "%s", bin);
         asprintf(&argv[1], "-hda");
         asprintf(&argv[2], "%s", img);
-- 
1.7.0.3

      parent reply	other threads:[~2011-10-31 19:19 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-31 19:17 [Qemu-devel] [PATCH v2 0/4] Cocoa patches for 1.0 Andreas Färber
2011-10-31 19:17 ` [Qemu-devel] [PATCH v2 1/4] MAINTAINERS: Add Cocoa maintainer Andreas Färber
2011-10-31 19:18 ` [Qemu-devel] [PATCH v2 2/4] softfloat: Avoid uint16 type conflict on Darwin Andreas Färber
2011-10-31 19:42   ` Peter Maydell
2011-10-31 19:17     ` Andreas Färber
2011-11-01  8:09   ` Eric Sunshine
2011-11-01 16:37     ` Andreas Färber
2011-11-01 17:59       ` [Qemu-devel] [PATCH v3 " Andreas Färber
2011-11-01 18:01         ` Peter Maydell
2011-11-01 18:05           ` Andreas Färber
2011-11-01 18:55             ` Eric Sunshine
2011-11-01 19:11               ` Andreas Färber
2011-11-01 18:17         ` Andreas Färber
2011-11-01 18:47       ` [Qemu-devel] [PATCH v2 " Eric Sunshine
2011-11-01 18:52         ` Andreas Färber
2011-11-01 19:06           ` Eric Sunshine
2011-11-01 19:25             ` Andreas Färber
2011-11-01 19:37               ` Peter Maydell
2011-11-01 19:45               ` Eric Sunshine
2011-11-01 20:21                 ` Andreas Färber
2011-11-01 19:25             ` Eric Sunshine
2011-11-01 19:32               ` Andreas Färber
2011-10-31 19:18 ` [Qemu-devel] [PATCH v2 3/4] vl.c: Guard against GThread double-initialization Andreas Färber
2011-10-31 19:18 ` Andreas Färber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1320088682-12958-5-git-send-email-andreas.faerber@web.de \
    --to=andreas.faerber@web.de \
    --cc=juan@logician.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).