Patchwork [for-1.1] cocoa: Suppress Cocoa frontend for -qtest

login
register
mail settings
Submitter Andreas Färber
Date May 28, 2012, 5:54 p.m.
Message ID <1338227677-93852-1-git-send-email-andreas.faerber@web.de>
Download mbox | patch
Permalink /patch/161635/
State New
Headers show

Comments

Andreas Färber - May 28, 2012, 5:54 p.m.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
---
 ui/cocoa.m |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/ui/cocoa.m b/ui/cocoa.m
index e7d6e89..4724d2c 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -879,7 +879,8 @@  int main (int argc, const char * argv[]) {
                 !strcmp(opt, "-vnc") ||
                 !strcmp(opt, "-nographic") ||
                 !strcmp(opt, "-version") ||
-                !strcmp(opt, "-curses")) {
+                !strcmp(opt, "-curses")||
+                !strcmp(opt, "-qtest")) {
                 return qemu_main(gArgc, gArgv, *_NSGetEnviron());
             }
         }