Fixed a compile-breaking bug on non-Windows.

This commit is contained in:
OBattler
2024-05-20 03:07:14 +02:00
parent 7cef898b7d
commit 18736f9c94

View File

@@ -591,7 +591,7 @@ MediaMenu::updateImageHistory(int index, int slot, ui::MediaType type)
#ifdef Q_OS_WINDOWS #ifdef Q_OS_WINDOWS
menu_item_name = tr("Host CD/DVD Drive (%1)").arg(fn.right(2)).toUtf8().constData(); menu_item_name = tr("Host CD/DVD Drive (%1)").arg(fn.right(2)).toUtf8().constData();
#else #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 #endif
} else { } else {
fi.setFile(fn); fi.setFile(fn);