Qt: Disable Replace ROM option when no game loaded

This commit is contained in:
Vicki Pfau 2020-02-19 23:12:26 -08:00
parent 1cf03b435a
commit 39e4a8a156
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ Misc:
- Qt: Renderer can be changed while a game is running
- Qt: Add hex index to palette view
- Qt: Add transformation matrix info to sprite view
- Qt: Disable Replace ROM option when no game loaded
0.8.1: (2020-02-16)
Emulation fixes:

View File

@ -1124,7 +1124,7 @@ void Window::setupMenu(QMenuBar* menubar) {
}, "file");
#endif
m_actions.addAction(tr("Replace ROM..."), "replaceROM", this, &Window::replaceROM, "file");
addGameAction(tr("Replace ROM..."), "replaceROM", this, &Window::replaceROM, "file");
#ifdef M_CORE_GBA
Action* scanCard = addGameAction(tr("Scan e-Reader dotcode..."), "scanCard", this, &Window::scanCard, "file");
m_platformActions.insert(PLATFORM_GBA, scanCard);