let Follow [] first in stack

This commit is contained in:
lynnux 2018-01-05 17:34:33 +08:00 committed by Duncan Ogilvie
parent 9ce734ed67
commit 5c8a0e5d11
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8

View File

@ -339,13 +339,15 @@ void CPUStack::setupContextMenu()
}
else if(followWay == GUI_DUMP)
{
followData.push_back(QPair<QString, QString>(tr("Follow %1 in %2").arg(valueText).arg(tr("Current Dump"))
, QString("dump " + ToHexString(rvaToVa(getInitialSelection())))));
if(wIsValidReadPtrCallback())
{
auto isValidReadPtr = wIsValidReadPtrCallback();
if(isValidReadPtr)
followData.push_back(QPair<QString, QString>(tr("Follow %1 in %2").arg(valueAddrText).arg(tr("Current Dump"))
, QString("dump \"[%1]\"").arg(valueText)));
followData.push_back(QPair<QString, QString>(tr("Follow %1 in %2").arg(valueText).arg(tr("Current Dump"))
, QString("dump " + ToHexString(rvaToVa(getInitialSelection())))));
if(isValidReadPtr)
{
QList<QString> tabNames;
mMultiDump->getTabNames(tabNames);
for(int i = 0; i < tabNames.length(); i++)