Permalink
Browse files

Merge pull request #6762 from lioncash/condition

DolphinQt/MemoryWidget: Fix dead condition in FindValue()
  • Loading branch information...
leoetlino committed May 6, 2018
2 parents f81d9c3 + 31389ba commit 27f6274fc5dee0718011eb902c605743c17b0960
Showing with 3 additions and 6 deletions.
  1. +3 −6 Source/Core/DolphinQt2/Debugger/MemoryWidget.cpp
@@ -507,7 +507,10 @@ void MemoryWidget::FindValue(bool next)
std::vector<u8> search_for = GetValueData();
if (search_for.empty())
{
m_result_label->setText(tr("No Value Given"));
return;
}
const u8* ram_ptr = nullptr;
std::size_t ram_size = 0;
@@ -531,12 +534,6 @@ void MemoryWidget::FindValue(bool next)
return;
}
if (search_for.empty())
{
m_result_label->setText(tr("No Value Given"));
return;
}
u32 addr = 0;
if (!m_search_address->text().isEmpty())

0 comments on commit 27f6274

Please sign in to comment.