From 76f82a356a3c39c882be838c10abd597b1345e3b Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 19 Feb 2020 23:12:26 -0800 Subject: [PATCH] Qt: Disable Replace ROM option when no game loaded --- CHANGES | 2 ++ src/platform/qt/Window.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index edabaf425..9d635808c 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,8 @@ Other fixes: - Core: Fix ELF loading regression (fixes mgba.io/i/1669) - 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) Emulation fixes: diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index ce8687ac3..631b60cb5 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -1107,7 +1107,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"); Action* romInfo = addGameAction(tr("ROM &info..."), "romInfo", openControllerTView(), "file");