Added close on context menu for reservoir case

p4#: 19266
This commit is contained in:
Magne Sjaastad
2012-10-23 11:12:47 +02:00
parent f4a328b4cb
commit f833244b68
5 changed files with 55 additions and 1 deletions

View File

@@ -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;