Commit c77d07ad authored by José Luis Vergara's avatar José Luis Vergara
Browse files

Re-add menu entries to KisLayerBox that were relevant to the current layer

o The Mask-adding actions were restored to the menu since it makes sense
to right click on a layer to add a mask to it.

BUG:275764
parent 6c39c98e
......@@ -363,7 +363,12 @@ void KisLayerBox::slotContextMenuRequested(const QPoint &pos, const QModelIndex
menu.addAction(KIcon("edit-duplicate"), i18n("&Duplicate Layer or Mask"), this, SLOT(slotDuplicateClicked()));
QAction* mergeLayerDown = menu.addAction(KIcon("edit-merge"), i18n("&Merge with Layer Below"), this, SLOT(slotMergeLayer()));
if (!index.sibling(index.row() + 1, 0).isValid()) mergeLayerDown->setEnabled(false);
menu.addSeparator();
}
menu.addSeparator();
menu.addAction(m_newTransparencyMaskAction);
menu.addAction(m_newEffectMaskAction);
menu.addAction(m_newSelectionMaskAction);
menu.exec(pos);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment