From patchwork Tue Oct 18 01:22:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Pineda X-Patchwork-Id: 120349 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7E825B6F98 for ; Tue, 18 Oct 2011 12:22:18 +1100 (EST) Received: from localhost ([::1]:35405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFyNi-0004MG-Nd for incoming@patchwork.ozlabs.org; Mon, 17 Oct 2011 21:22:14 -0400 Received: from eggs.gnu.org ([140.186.70.92]:51410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFyNd-0004Lz-L9 for qemu-devel@nongnu.org; Mon, 17 Oct 2011 21:22:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFyNc-0002pI-Jt for qemu-devel@nongnu.org; Mon, 17 Oct 2011 21:22:09 -0400 Received: from mail-iy0-f173.google.com ([209.85.210.173]:63511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFyNc-0002oe-Gf; Mon, 17 Oct 2011 21:22:08 -0400 Received: by iakl21 with SMTP id l21so113719iak.4 for ; Mon, 17 Oct 2011 18:22:07 -0700 (PDT) Received: by 10.231.67.80 with SMTP id q16mr71091ibi.86.1318900927014; Mon, 17 Oct 2011 18:22:07 -0700 (PDT) Received: from [192.108.229.223] (208-90-212-34.PUBLIC.monkeybrains.net. [208.90.212.34]) by mx.google.com with ESMTPS id g16sm931629ibs.8.2011.10.17.18.22.05 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Oct 2011 18:22:06 -0700 (PDT) From: Juan Pineda Date: Mon, 17 Oct 2011 18:22:03 -0700 Message-Id: To: aliguori@us.ibm.com, qemu-devel@nongnu.org Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.173 Cc: qemu-trivial@nongnu.org Subject: [Qemu-devel] Patch for ui/cocoa.m X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Hello, This is my first time submitting a patch, so please let me know if I'm not following the correct protocol. Under OSX Lion the boot volume dialog is not closed and it permanently obscures the emulator window since under Lion the dialog cannot be repositioned. The fix adds only to add a single line to close the dialog. Signed-off-by: Juan Pineda Thanks! -Juan > git diff ui/cocoa.m diff --git a/ui/cocoa.m b/ui/cocoa.m index d9e4e3d..4b42462 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);