Skip to content

Commit

Permalink
addendum for automatic overlapped menu. refs #14390
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 12, 2024
1 parent 4b666c3 commit 4a27233
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/gui/windows/GUISUMOAbstractView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,8 @@ GUISUMOAbstractView::openObjectDialogAtCursor(const FXEvent* ev) {
myPopup = GUIGlObjectStorage::gIDStorage.getNetObject()->getPopUpMenu(*myApp, *this);
} else {
std::sort(objectsUnderCursor.begin(), objectsUnderCursor.end(), ComparatorClickPriority());
if (altKeyPressed && objectsUnderCursor.size() > 1) {
if (objectsUnderCursor.size() > 1 && (altKeyPressed
|| objectsUnderCursor[0]->getClickPriority() == objectsUnderCursor[1]->getClickPriority())) {
// open dialog for picking among objects (without duplicates)
myPopup = new GUICursorDialog(GUIGLObjectPopupMenu::PopupType::PROPERTIES, this, filterContextObjects(objectsUnderCursor));
} else {
Expand Down

0 comments on commit 4a27233

Please sign in to comment.