mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
Fix unwanted jumping from Hexdump to Disassembly
This commit is contained in:
parent
ecb5fc75cf
commit
6f19e8c225
@ -161,7 +161,9 @@ void DisassemblerGraphView::loadCurrentGraph()
|
||||
bool emptyGraph = functions.isEmpty();
|
||||
if (emptyGraph) {
|
||||
// If there's no function to print, just move to disassembly and add a message
|
||||
Core()->setMemoryWidgetPriority(CutterCore::MemoryWidgetType::Disassembly);
|
||||
if (Core()->getMemoryWidgetPriority() == CutterCore::MemoryWidgetType::Graph) {
|
||||
Core()->setMemoryWidgetPriority(CutterCore::MemoryWidgetType::Disassembly);
|
||||
}
|
||||
if (!emptyText) {
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
emptyText = new QLabel(this);
|
||||
|
Loading…
Reference in New Issue
Block a user