Commit e904c47b authored by Jan Möbius's avatar Jan Möbius

Fixed context menu action data. Was not attached if plugins changed the menu

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@3002 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5b8bfdcb
...@@ -88,6 +88,8 @@ void CoreWidget::updatePopupMenu(const QPoint& _point) { ...@@ -88,6 +88,8 @@ void CoreWidget::updatePopupMenu(const QPoint& _point) {
if ( objectId != -1) { if ( objectId != -1) {
emit updateContextMenu(objectId);
// Add an empty Menu defining the current Type // Add an empty Menu defining the current Type
if ( object->dataType() == DATA_POLY_MESH ){ if ( object->dataType() == DATA_POLY_MESH ){
typeEntry->setText("Poly Mesh"); typeEntry->setText("Poly Mesh");
...@@ -148,8 +150,6 @@ void CoreWidget::updatePopupMenu(const QPoint& _point) { ...@@ -148,8 +150,6 @@ void CoreWidget::updatePopupMenu(const QPoint& _point) {
if ( topLevelAdded > 0 ) if ( topLevelAdded > 0 )
contextMenu_->addSeparator(); contextMenu_->addSeparator();
emit updateContextMenu(objectId);
// Add persistent context Menus as second part // Add persistent context Menus as second part
for ( uint i = 0 ; i < persistentContextMenus_.size(); ++i ) { for ( uint i = 0 ; i < persistentContextMenus_.size(); ++i ) {
contextMenu_->addMenu( persistentContextMenus_[i].menu ); contextMenu_->addMenu( persistentContextMenus_[i].menu );
......
Markdown is supported
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