Merge pull request #3427 from foralost/#3397_Setting_comment_does_not_show

Loading current graph in GUI_UPDATE_GRAPH_VIEW
This commit is contained in:
Duncan Ogilvie 2024-09-07 15:21:11 +02:00 committed by GitHub
commit 74c6d2a579
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View File

@ -2004,10 +2004,10 @@ void DisassemblerGraphView::tokenizerConfigUpdatedSlot()
{
disasm.UpdateConfig();
mPermanentHighlightingMode = ConfigBool("Disassembler", "PermanentHighlightingMode");
loadCurrentGraph();
loadCurrentGraphSlot();
}
void DisassemblerGraphView::loadCurrentGraph()
void DisassemblerGraphView::loadCurrentGraphSlot()
{
if(ConfigBool("Gui", "GraphZoomMode"))
{
@ -2151,7 +2151,7 @@ void DisassemblerGraphView::loadGraphSlot(BridgeCFGraphList* graphList, duint ad
currentBlockMap.clear();
this->cur_instr = addr ? addr : this->function;
this->forceCenter = true;
loadCurrentGraph();
loadCurrentGraphSlot();
Bridge::getBridge()->setResult(BridgeResult::LoadGraph, 1);
}
@ -2170,6 +2170,7 @@ void DisassemblerGraphView::updateGraphSlot()
zoomLevelOld = 1;
}
loadCurrentGraphSlot();
this->viewport()->update();
}
@ -2439,7 +2440,7 @@ void DisassemblerGraphView::colorsUpdatedSlot()
mInstructionHighlightBackgroundColor = ConfigColor("InstructionHighlightBackgroundColor");
fontChanged();
loadCurrentGraph();
loadCurrentGraphSlot();
}
void DisassemblerGraphView::fontsUpdatedSlot()
@ -2461,7 +2462,7 @@ void DisassemblerGraphView::toggleOverviewSlot()
{
onlySummary = false;
mToggleSummary->setChecked(false);
loadCurrentGraph();
loadCurrentGraphSlot();
}
else
this->viewport()->update();
@ -2471,7 +2472,7 @@ void DisassemblerGraphView::toggleSummarySlot()
{
drawOverview = false;
onlySummary = !onlySummary;
loadCurrentGraph();
loadCurrentGraphSlot();
}
void DisassemblerGraphView::selectionGetSlot(SELECTIONDATA* selection)

View File

@ -272,7 +272,7 @@ public slots:
void toggleSummarySlot();
void selectionGetSlot(SELECTIONDATA* selection);
void tokenizerConfigUpdatedSlot();
void loadCurrentGraph();
void loadCurrentGraphSlot();
void disassembleAtSlot(duint va, duint cip);
void gotoExpressionSlot();
void gotoOriginSlot();