PD: open transaction when calling item of context-menu of sketch based features

This commit is contained in:
wmayer
2021-10-22 20:01:43 +02:00
parent d39233313b
commit 45c3cee264
6 changed files with 28 additions and 18 deletions

View File

@@ -47,12 +47,7 @@ ViewProviderPad::~ViewProviderPad()
void ViewProviderPad::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
{
// Note: This methode couldn't be unified with others because menu entry string
// should present united in sources for proper translation and shouldn't be
// constructed on runtime.
QAction* act;
act = menu->addAction(QObject::tr("Edit pad"), receiver, member);
act->setData(QVariant((int)ViewProvider::Default));
addDefaultAction(menu, QObject::tr("Edit pad"));
PartDesignGui::ViewProviderSketchBased::setupContextMenu(menu, receiver, member);
}