Fixed a compile-breaking bug on non-Windows.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user