From 18736f9c94b04d8839088a6bf6ebc852c2bc21f3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 20 May 2024 03:07:14 +0200 Subject: [PATCH] Fixed a compile-breaking bug on non-Windows. --- src/qt/qt_mediamenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/qt_mediamenu.cpp b/src/qt/qt_mediamenu.cpp index d9d6b6c31..a1d8a528c 100644 --- a/src/qt/qt_mediamenu.cpp +++ b/src/qt/qt_mediamenu.cpp @@ -591,7 +591,7 @@ MediaMenu::updateImageHistory(int index, int slot, ui::MediaType type) #ifdef Q_OS_WINDOWS menu_item_name = tr("Host CD/DVD Drive (%1)").arg(fn.right(2)).toUtf8().constData(); #else - menu_item_name = tr("Host CD/DVD Drive (%1)").arg(fn.right(name.length() - 8)); + menu_item_name = tr("Host CD/DVD Drive (%1)").arg(fn.right(fn.length() - 8)); #endif } else { fi.setFile(fn);