]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commitdiff
ui/cocoa: Add ".qcow2" to extension list for image load dialog
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 8 Dec 2013 22:59:05 +0000 (22:59 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Sun, 12 Jan 2014 22:27:10 +0000 (22:27 +0000)
Add ".qcow2" to the list of file extensions which are accepted
by the initial disk image load dialog which is displayed if the
user runs QEMU without any command line arguments.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1386543546-31919-5-git-send-email-peter.maydell@linaro.org

ui/cocoa.m

index 52498916517f26ccf9c057cb0f0d262cfc998314..fd55044547cd42e5c7614e0981aaa4c45fd3db76 100644 (file)
@@ -785,7 +785,7 @@ QemuCocoaView *cocoaView;
         [op setPrompt:@"Boot image"];
         [op setMessage:@"Select the disk image you want to boot.\n\nHit the \"Cancel\" button to quit"];
         NSArray *filetypes = [NSArray arrayWithObjects:@"img", @"iso", @"dmg",
-                                 @"qcow", @"cow", @"cloop", @"vmdk", nil];
+                                 @"qcow", @"qcow2", @"cow", @"cloop", @"vmdk", nil];
 #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)
         [op setAllowedFileTypes:filetypes];
         [op beginSheetModalForWindow:normalWindow