PD: open transaction when calling item of context-menu of sketch based features
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user