mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-13 22:37:02 +00:00
UI: Use wxID_ANY and wxNOT_FOUND instead of hardcoding -1 (#1581)
This commit is contained in:
parent
02616bf6be
commit
152b790242
7 changed files with 48 additions and 48 deletions
|
|
@ -439,7 +439,7 @@ void DebugPPCThreadsWindow::OnThreadListRightClick(wxMouseEvent& event)
|
|||
m_thread_list->SetItemState(itemIndex, wxLIST_STATE_FOCUSED, wxLIST_STATE_FOCUSED);
|
||||
long sel = m_thread_list->GetNextItem(-1, wxLIST_NEXT_ALL,
|
||||
wxLIST_STATE_SELECTED);
|
||||
if (sel != -1)
|
||||
if (sel != wxNOT_FOUND)
|
||||
m_thread_list->SetItemState(sel, 0, wxLIST_STATE_SELECTED);
|
||||
m_thread_list->SetItemState(itemIndex, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED);
|
||||
// check if thread is still on the list of active threads
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue