forked from dolphin-emu/dolphin
CodeWindow: Ignore search error highlighting on empty string
Doesn't make sense to flag these as errors, since someone might search for another address.
This commit is contained in:
@@ -240,7 +240,7 @@ void CCodeWindow::OnAddrBoxChange(wxCommandEvent& event)
|
|||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
pAddrCtrl->SetBackgroundColour(wxNullColour);
|
pAddrCtrl->SetBackgroundColour(wxNullColour);
|
||||||
else
|
else if (!txt.empty())
|
||||||
pAddrCtrl->SetBackgroundColour(*wxRED);
|
pAddrCtrl->SetBackgroundColour(*wxRED);
|
||||||
|
|
||||||
pAddrCtrl->Refresh();
|
pAddrCtrl->Refresh();
|
||||||
|
Reference in New Issue
Block a user