summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp b/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp
index e1970dacc5..fd713b6695 100644
--- a/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp
+++ b/Source/Core/DolphinQt/CheatSearchFactoryWidget.cpp
@@ -159,8 +159,7 @@ void CheatSearchFactoryWidget::OnNewSearchClicked()
if (m_standard_address_space->isChecked())
{
auto& system = Core::System::GetInstance();
- const Core::State core_state = Core::GetState(system);
- if (core_state != Core::State::Running && core_state != Core::State::Paused)
+ if (!Core::IsRunning(system))
{
ModalMessageBox::warning(
this, tr("No game running."),