Skip to content

Commit

Permalink
Merge pull request #6700 from sepalani/wx-copy-hex
Browse files Browse the repository at this point in the history
DolphinWx: Prevent a crash on Copy hex
  • Loading branch information
Helios747 committed Apr 27, 2018
2 parents ddceac1 + e73906e commit d3db8fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Core/DolphinWX/Debugger/MemoryView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "Common/CommonTypes.h"
#include "Common/DebugInterface.h"
#include "Common/StringUtil.h"
#include "Core/Core.h"
#include "Core/HW/Memmap.h"
#include "Core/PowerPC/PPCSymbolDB.h"
#include "Core/PowerPC/PowerPC.h"
Expand Down Expand Up @@ -310,7 +311,9 @@ void CMemoryView::OnMouseDownR(wxMouseEvent& event)
// menu.Append(IDM_GOTOINMEMVIEW, _("&Goto in mem view"));
#if wxUSE_CLIPBOARD
menu.Append(IDM_COPYADDRESS, _("Copy &address"));
menu.Append(IDM_COPYHEX, _("Copy &hex"));
menu.Append(IDM_COPYHEX, _("Copy &hex"))
->Enable(Core::GetState() != Core::State::Uninitialized &&
PowerPC::HostIsRAMAddress(selection));
#endif
// i18n: This kind of "watch" is used for watching emulated memory.
// It's not related to timekeeping devices.
Expand Down

0 comments on commit d3db8fc

Please sign in to comment.