Patchwork [2/2] cocoa: Suppress Cocoa frontend for -qtest

login
register
mail settings
Submitter Andreas Färber
Date May 29, 2012, 9:59 a.m.
Message ID <1338285562-7281-3-git-send-email-andreas.faerber@web.de>
Download mbox | patch
Permalink /patch/161720/
State New
Headers show

Comments

Andreas Färber - May 29, 2012, 9:59 a.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..2383646 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());
             }
         }