Don't show invalid menu entries in watch view (#1022)
* Translate some strings and export memiscodepage. * fixed memory leaks in watch view * warn the user if the breakpoint is not executable * use dbgfunctions * remove unused exports * fix * fix * guard translate function with critical section * DeleteCriticalSection * Animate Into * Animate Into * Animate Into * GUI improvements (#1004) * GUI improvements * fix issue #939 * fix issue #1000 * don't halt (#1007) * GUI: space between comment and address in DisassemblyPopup * DBG: use unsafe memory reading in thread.cpp * DBG+GUI: fixed user experience * Translate some strings and export memiscodepage. * fixed memory leaks in watch view * warn the user if the breakpoint is not executable * use dbgfunctions * remove unused exports * fix * fix * GUI: close issue #573 (invalid sizes in save data) * GUI: updated Translations * Improvemets of PEB->CommandLine parsing algorithm (#1005) * Add some tweaks and improvements to parsing algorithm of command line from PEB * Remove debug remains * Check for PE name (with/without extension) is used in path to PE * guard translate function with critical section * DeleteCriticalSection * Fixed wow64 redirection. Moved disable before the call to GetFileArchitecture() (#1013) * Signed and Unsigned byte in dump (#1012) * Translate some strings and export memiscodepage. * fixed memory leaks in watch view * warn the user if the breakpoint is not executable * use dbgfunctions * remove unused exports * fix * fix * guard translate function with critical section * DeleteCriticalSection * Highlight register from registers view * ALLOW MODIFY RIP REGISTER * Highlight menu in register view * Signed and unsigned byte in dump view * DBG: imageinfo command * GUI: same font as log in CommandLineEdit * GUI: updated Translations * Use secure image * PROJECT: fixed telegram link in readme * GUI: icons on tracing condition dialogs * DBG: updated yara to 3.5.0 * Update README.md (#1016) * GUI: possible fix for an irreproducible crash * GUI: also set the log font in the QCompleter * GUI: further optimization of token colors (fixed crash) * GUI: more usable disassembly popup window * GUI: disassembly preview on RET instruction * GUI: don't preview beyond obvious function endings in DisassemblyPopup * Animate Into * Animate Into * Animate Into * Don't show invalid menu entries in watch view
This commit is contained in:
parent
2938fa54c0
commit
5b9fd9e73d
|
|
@ -139,9 +139,18 @@ void WatchView::setupContextMenu()
|
|||
return DbgIsDebugging();
|
||||
});
|
||||
mMenu->addAction(makeAction(tr("&Add..."), SLOT(addWatchSlot())));
|
||||
mMenu->addAction(makeAction(tr("&Delete"), SLOT(delWatchSlot())));
|
||||
mMenu->addAction(makeAction(tr("Rename"), SLOT(renameWatchSlot())));
|
||||
mMenu->addAction(makeAction(tr("&Edit..."), SLOT(editWatchSlot())));
|
||||
mMenu->addAction(makeAction(tr("&Delete"), SLOT(delWatchSlot())), [this](QMenu*)
|
||||
{
|
||||
return getRowCount() != 0;
|
||||
});
|
||||
mMenu->addAction(makeAction(tr("Rename"), SLOT(renameWatchSlot())), [this](QMenu*)
|
||||
{
|
||||
return getRowCount() != 0;
|
||||
});
|
||||
mMenu->addAction(makeAction(tr("&Edit..."), SLOT(editWatchSlot())), [this](QMenu*)
|
||||
{
|
||||
return getRowCount() != 0;
|
||||
});
|
||||
QMenu* watchdogMenu = new QMenu(tr("Watchdog"), this);
|
||||
watchdogMenu->addAction(makeAction(DIcon("close-all-tabs.png"), tr("Disabled"), SLOT(watchdogDisableSlot())));
|
||||
watchdogMenu->addSeparator();
|
||||
|
|
@ -149,7 +158,10 @@ void WatchView::setupContextMenu()
|
|||
watchdogMenu->addAction(makeAction(tr("Not changed"), SLOT(watchdogUnchangedSlot())));
|
||||
watchdogMenu->addAction(makeAction(tr("Is true"), SLOT(watchdogIsTrueSlot())));
|
||||
watchdogMenu->addAction(makeAction(tr("Is false"), SLOT(watchdogIsFalseSlot())));
|
||||
mMenu->addMenu(watchdogMenu);
|
||||
mMenu->addMenu(watchdogMenu, [this](QMenu*)
|
||||
{
|
||||
return getRowCount() != 0;
|
||||
});
|
||||
}
|
||||
|
||||
QString WatchView::getSelectedId()
|
||||
|
|
|
|||
Loading…
Reference in New Issue