From: Akihiko Odaki Date: Tue, 15 Feb 2022 08:03:04 +0000 (+0100) Subject: ui/cocoa: Do not alert even without block devices X-Git-Tag: v7.0.0-rc0~47^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b597278d5780b15759c31a944f21f8b1491902fe;p=thirdparty%2Fqemu.git ui/cocoa: Do not alert even without block devices Signed-off-by: Akihiko Odaki Message-id: 20220215080307.69550-13-f4bug@amsat.org Message-Id: <20220213021418.2155-1-akihiko.odaki@gmail.com> Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Peter Maydell --- diff --git a/ui/cocoa.m b/ui/cocoa.m index 7a1ddd4075f..f585a5c177d 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -1709,11 +1709,6 @@ static void addRemovableDevicesMenuItems(void) currentDevice = qmp_query_block(NULL); pointerToFree = currentDevice; - if(currentDevice == NULL) { - NSBeep(); - QEMU_Alert(@"Failed to query for block devices!"); - return; - } menu = [[[NSApp mainMenu] itemWithTitle:@"Machine"] submenu];