QmlDesigner.ContextMenu: Adding tabs is also possible in navigator

Change-Id: Ic124438942311741901149e62e8364b6b525bab8
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
Thomas Hartmann
2014-06-17 12:22:12 +02:00
parent 6c671dd7e3
commit 5a9c1bfafa
@@ -89,9 +89,6 @@ AbstractDesignerAction::Type TabViewDesignerAction::type() const
bool TabViewDesignerAction::isVisible(const SelectionContext &selectionContext) const
{
if (selectionContext.scenePosition().isNull())
return false;
if (selectionContext.singleNodeIsSelected()) {
ModelNode selectedModelNode = selectionContext.currentSingleSelectedNode();
return isTabView(selectedModelNode) || isTabAndParentIsTabView(selectedModelNode);