mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +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();
|
bool emptyGraph = functions.isEmpty();
|
||||||
if (emptyGraph) {
|
if (emptyGraph) {
|
||||||
// If there's no function to print, just move to disassembly and add a message
|
// 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) {
|
if (!emptyText) {
|
||||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||||
emptyText = new QLabel(this);
|
emptyText = new QLabel(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user