mirror of https://github.com/CGAL/cgal
Add menu Operations to the menu even if several items are selected.
This commit is contained in:
parent
7868c454e7
commit
87f16a5fa2
|
|
@ -1493,6 +1493,7 @@ void MainWindow::showSceneContextMenu(int selectedItemIndex,
|
|||
}
|
||||
}
|
||||
menu->addMenu(ui->menuOperations);
|
||||
|
||||
if(menu)
|
||||
menu->exec(global_pos);
|
||||
}
|
||||
|
|
@ -1755,6 +1756,7 @@ void MainWindow::showSceneContextMenu(const QPoint& p) {
|
|||
QAction* saveas = menu.addAction(tr("&Save as..."));
|
||||
connect(saveas, SIGNAL(triggered()),
|
||||
this, SLOT(on_actionSaveAs_triggered()));
|
||||
menu.addMenu(ui->menuOperations);
|
||||
menu.exec(sender->mapToGlobal(p));
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue