[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 03/10] Cocoa: avoid displaying window when command-l
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH 03/10] Cocoa: avoid displaying window when command-line contains '-h' or '-help' |
Date: |
Tue, 14 Jun 2011 03:22:00 +0200 |
From: Alexandre Raymond <address@hidden>
There was already a check in place to avoid displaying a window
in certain modes such as vnc, nographic or curses.
Add a check for '-h' and '-help' to avoid displaying a window for a split-
second before showing the usage information.
Signed-off-by: Alexandre Raymond <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
---
ui/cocoa.m | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ui/cocoa.m b/ui/cocoa.m
index 1ff1ac6..e1312d3 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -872,7 +872,8 @@ int main (int argc, const char * argv[]) {
if (opt[1] == '-') {
opt++;
}
- if (!strcmp(opt, "-vnc") ||
+ if (!strcmp(opt, "-h") || !strcmp(opt, "-help") ||
+ !strcmp(opt, "-vnc") ||
!strcmp(opt, "-nographic") ||
!strcmp(opt, "-version") ||
!strcmp(opt, "-curses")) {
--
1.7.5.3
- [Qemu-devel] [PULL 00/10] Fixes for Cocoa backend, Andreas Färber, 2011/06/13
- [Qemu-devel] [PATCH 01/10] cocoa: do not create a spurious window for -version, Andreas Färber, 2011/06/13
- [Qemu-devel] [PATCH 02/10] Fix compilation warning due to incorrectly specified type, Andreas Färber, 2011/06/13
- [Qemu-devel] [PATCH 03/10] Cocoa: avoid displaying window when command-line contains '-h' or '-help',
Andreas Färber <=
- [Qemu-devel] [PATCH 04/10] Remove warning in printf due to type mismatch, Andreas Färber, 2011/06/13
- [Qemu-devel] [PATCH 05/10] configure: Fix check for fdatasync(), Andreas Färber, 2011/06/13
- [Qemu-devel] [PATCH 06/10] Fix libfdt warnings on Darwin, Andreas Färber, 2011/06/13
- [Qemu-devel] [PATCH 07/10] cocoa: Provide central qemu_main() prototype, Andreas Färber, 2011/06/13
- [Qemu-devel] [PATCH 08/10] cocoa: Revert dependency on VNC, Andreas Färber, 2011/06/13
- [Qemu-devel] [PATCH 09/10] cocoa: Avoid warning related to multiple handleEvent: definitions, Andreas Färber, 2011/06/13
- [Qemu-devel] [PATCH 10/10] Darwin: Fix compilation warning regarding the deprecated daemon() function, Andreas Färber, 2011/06/13
- Re: [Qemu-devel] [PATCH 08/10] cocoa: Revert dependency on VNC, Jes Sorensen, 2011/06/27
Re: [Qemu-devel] [PULL 00/10] Fixes for Cocoa backend, Blue Swirl, 2011/06/15