mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added close on context menu for reservoir case
p4#: 19266
This commit is contained in:
@@ -315,7 +315,17 @@ bool UiTreeModelPdm::removeRows(int position, int rows, const QModelIndex &paren
|
||||
{
|
||||
if (rows <= 0) return true;
|
||||
|
||||
PdmUiTreeItem* parentItem = getTreeItemFromIndex(parent);
|
||||
PdmUiTreeItem* parentItem = NULL;
|
||||
if (parent.isValid())
|
||||
{
|
||||
parentItem = getTreeItemFromIndex(parent);
|
||||
}
|
||||
else
|
||||
{
|
||||
parentItem = m_root;
|
||||
}
|
||||
|
||||
if (!parentItem) return true;
|
||||
|
||||
bool success = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user