Skip to content

Commit

Permalink
+ Fix inconsistency in context-menu of FEM view provider
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Nov 9, 2013
1 parent 530ea28 commit 909f7d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Mod/Fem/Gui/ViewProviderFemMeshShapeNetgen.cpp
Expand Up @@ -25,7 +25,6 @@

#ifndef _PreComp_
# include <Standard_math.hxx>

#endif

#include "ViewProviderFemMeshShapeNetgen.h"
Expand All @@ -50,15 +49,18 @@ ViewProviderFemMeshShapeNetgen::ViewProviderFemMeshShapeNetgen()

ViewProviderFemMeshShapeNetgen::~ViewProviderFemMeshShapeNetgen()
{


}

bool ViewProviderFemMeshShapeNetgen::setEdit(int ModNum)
void ViewProviderFemMeshShapeNetgen::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
{
QAction* act = menu->addAction(QObject::tr("Meshing"), receiver, member);
act->setData(QVariant((int)ViewProvider::Default));
}

if (ModNum == ViewProvider::Default ) {

bool ViewProviderFemMeshShapeNetgen::setEdit(int ModNum)
{
if (ModNum == ViewProvider::Default) {
// clear the selection (convenience)
Gui::Selection().clearSelection();

Expand Down
1 change: 1 addition & 0 deletions src/Mod/Fem/Gui/ViewProviderFemMeshShapeNetgen.h
Expand Up @@ -52,6 +52,7 @@ class FemGuiExport ViewProviderFemMeshShapeNetgen : public ViewProviderFemMeshSh
virtual void updateData(const App::Property*);

protected:
virtual void setupContextMenu(QMenu* menu, QObject* receiver, const char* member);
virtual bool setEdit(int ModNum);

};
Expand Down

0 comments on commit 909f7d6

Please sign in to comment.