summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/CodeWindow.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-08-03 04:23:03 -0400
committerLioncash <mathew1800@gmail.com>2015-09-26 22:38:08 -0400
commit7ba171a497e46adbb16423b76f4871edd0bae7c4 (patch)
tree82091f57cd846b5feeb1a1fc3c459ec370fe67b4 /Source/Core/DolphinWX/Debugger/CodeWindow.cpp
parent68663732026b0a0c24c45f58bdd70d34c2070855 (diff)
CodeWindow: Ignore search error highlighting on empty string
Doesn't make sense to flag these as errors, since someone might search for another address.
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/CodeWindow.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/CodeWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/Debugger/CodeWindow.cpp b/Source/Core/DolphinWX/Debugger/CodeWindow.cpp
index 3ef85239e6..6fd8894edd 100644
--- a/Source/Core/DolphinWX/Debugger/CodeWindow.cpp
+++ b/Source/Core/DolphinWX/Debugger/CodeWindow.cpp
@@ -240,7 +240,7 @@ void CCodeWindow::OnAddrBoxChange(wxCommandEvent& event)
if (success)
pAddrCtrl->SetBackgroundColour(wxNullColour);
- else
+ else if (!txt.empty())
pAddrCtrl->SetBackgroundColour(*wxRED);
pAddrCtrl->Refresh();