From: Peter Maydell <peter.maydell@linaro.org>
To: Programmingkid <programmingkidx@gmail.com>
Cc: qemu-devel qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2] ui/cocoa.m: remove open dialog code
Date: Fri, 25 Sep 2015 09:09:00 -0700 [thread overview]
Message-ID: <CAFEAcA_v9YyGc+TP4zG_VHFyHMWDn_0W9EwAL_xJTX76=hn+Sw@mail.gmail.com> (raw)
In-Reply-To: <95F1C5B4-8236-49CC-8001-DAECD69B1298@gmail.com>
On 23 September 2015 at 16:06, Programmingkid <programmingkidx@gmail.com> wrote:
> Removes the open dialog code that runs when no arguments
> are supplied with QEMU. Not everyone needs a hard drive
> or cdrom to boot their target. A user might only need to
> use their target's bios to do work. With that said,
> this patch removes the unneeded open dialog code.
>
> Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
>
> ---
> Add a dialog box that tells the user to start QEMU from
> the commandline instead of the Finder.
>
> ui/cocoa.m | 66
> ++++++++++++-----------------------------------------------
> 1 files changed, 14 insertions(+), 52 deletions(-)
>
> diff --git a/ui/cocoa.m b/ui/cocoa.m
> index 334e6f6..dc8e0f6 100644
> --- a/ui/cocoa.m
> +++ b/ui/cocoa.m
> @@ -814,7 +814,6 @@ QemuCocoaView *cocoaView;
> {
> }
> - (void)startEmulationWithArgc:(int)argc argv:(char**)argv;
> -- (void)openPanelDidEnd:(NSOpenPanel *)sheet
> returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
> - (void)doToggleFullScreen:(id)sender;
> - (void)toggleFullScreen:(id)sender;
> - (void)showQEMUDoc:(id)sender;
> @@ -896,27 +895,20 @@ QemuCocoaView *cocoaView;
> {
> COCOA_DEBUG("QemuCocoaAppController: applicationDidFinishLaunching\n");
>
>
>
> - // Display an open dialog box if no arguments were passed or
> - // if qemu was launched from the finder ( the Finder passes "-psn" )
> - if( gArgc <= 1 || strncmp ((char *)gArgv[1], "-psn", 4) == 0) {
Here we look at whether we were passed "-psn" as our check for
whether we were launched from the Finder...
> + // if the user launched QEMU from the Finder
> + if(gArgc == 1) {
...but here you have changed the condition. Why?
(Also, isn't a simple test on gArgc going to cause us to put up
the dialog box even if qemu was started from the command line with
no arguments?)
thanks
-- PMM
next prev parent reply other threads:[~2015-09-25 16:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-23 23:06 [Qemu-devel] [PATCH v2] ui/cocoa.m: remove open dialog code Programmingkid
2015-09-25 16:09 ` Peter Maydell [this message]
2015-09-25 16:12 ` Programmingkid
2015-09-25 16:21 ` Peter Maydell
2015-09-25 18:24 ` Programmingkid
2015-09-25 18:53 ` Peter Maydell
2015-09-25 19:58 ` Programmingkid
2015-09-25 20:14 ` Peter Maydell
2015-09-25 20:38 ` Programmingkid
2015-09-25 20:47 ` Peter Maydell
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='CAFEAcA_v9YyGc+TP4zG_VHFyHMWDn_0W9EwAL_xJTX76=hn+Sw@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=programmingkidx@gmail.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).