aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@gmail.com>2022-02-15 09:03:04 +0100
committerPeter Maydell <peter.maydell@linaro.org>2022-02-21 13:30:21 +0000
commitb597278d5780b15759c31a944f21f8b1491902fe (patch)
tree5ba2046a7c1667aee9e1a1bb28f9e5548892c85a
parent0cd723f2d0afc48bb44c40d8aa1bce68848667ad (diff)
ui/cocoa: Do not alert even without block devices
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com> Message-id: 20220215080307.69550-13-f4bug@amsat.org Message-Id: <20220213021418.2155-1-akihiko.odaki@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--ui/cocoa.m5
1 files changed, 0 insertions, 5 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m
index 7a1ddd4075..f585a5c177 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];