mirror of https://github.com/PCSX2/pcsx2.git
Debugger: Fix crash in symbol tree menu code
This commit is contained in:
parent
62f20a4809
commit
60abebb3a5
|
@ -154,6 +154,11 @@ void CpuWidget::setupSymbolTrees()
|
|||
m_local_variable_tree = new LocalVariableTreeWidget(m_cpu);
|
||||
m_parameter_variable_tree = new ParameterVariableTreeWidget(m_cpu);
|
||||
|
||||
m_function_tree->updateModel();
|
||||
m_global_variable_tree->updateModel();
|
||||
m_local_variable_tree->updateModel();
|
||||
m_parameter_variable_tree->updateModel();
|
||||
|
||||
m_ui.tabFunctions->layout()->addWidget(m_function_tree);
|
||||
m_ui.tabGlobalVariables->layout()->addWidget(m_global_variable_tree);
|
||||
m_ui.tabLocalVariables->layout()->addWidget(m_local_variable_tree);
|
||||
|
|
|
@ -445,6 +445,8 @@ void SymbolTreeWidget::setupMenu()
|
|||
void SymbolTreeWidget::openMenu(QPoint pos)
|
||||
{
|
||||
SymbolTreeNode* node = currentNode();
|
||||
if (!node)
|
||||
return;
|
||||
|
||||
bool node_is_object = node->tag == SymbolTreeNode::OBJECT;
|
||||
bool node_is_symbol = node->symbol.valid();
|
||||
|
|
Loading…
Reference in New Issue