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 dbd3aba527
commit 76f82a356a
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@
Other fixes: Other fixes:
- Core: Fix ELF loading regression (fixes mgba.io/i/1669) - Core: Fix ELF loading regression (fixes mgba.io/i/1669)
- Core: Fix crash modifying hash table entry (fixes mgba.io/i/1673) - Core: Fix crash modifying hash table entry (fixes mgba.io/i/1673)
Misc:
- Qt: Disable Replace ROM option when no game loaded
0.8.1: (2020-02-16) 0.8.1: (2020-02-16)
Emulation fixes: Emulation fixes:

View File

@ -1107,7 +1107,7 @@ void Window::setupMenu(QMenuBar* menubar) {
}, "file"); }, "file");
#endif #endif
m_actions.addAction(tr("Replace ROM..."), "replaceROM", this, &Window::replaceROM, "file"); addGameAction(tr("Replace ROM..."), "replaceROM", this, &Window::replaceROM, "file");
Action* romInfo = addGameAction(tr("ROM &info..."), "romInfo", openControllerTView<ROMInfo>(), "file"); Action* romInfo = addGameAction(tr("ROM &info..."), "romInfo", openControllerTView<ROMInfo>(), "file");