USEPA / SWMM-EPANET_User_Interface

User interface for the Stormwater-Management-Model
111 stars 66 forks source link

Add objects through tree diagram confused when switching between objects #331

Closed PaulDudaRESPEC closed 4 years ago

PaulDudaRESPEC commented 4 years ago

Adding objects to the SWMM map using the tree diagram works when using the green + sign before adding each item, but it can get confused when adding one form of visual object (subcatchments) and then switching to another form of object (say junctions) without clicking the green sign in between. The sequence works fine when using the toolbar buttons.

PaulDudaRESPEC commented 4 years ago

Problem solved by adding a call to the same one used by the toolbar buttons.

TongZhai commented 4 years ago

@PaulDudaRESPEC @barrc @michelleannesimon the fix above standardizes the use of the green plus button to add new model elements from the tree diagram, hence eliminates confusion when selection changes in the tree diagram. Also, users can freely intertwine selection/switching of model element using the toolbar icons as well. Please help confirm.

barrc commented 4 years ago

Tested successfully in my development environment.