Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leave way as closed when disconnecting #6161

Merged

Conversation

jguthrie100
Copy link
Contributor

@jguthrie100 jguthrie100 commented Apr 8, 2019

This adds to the fix in #6149 and makes it so that when a closed way is selected as well as the node to disconnect, the closed way gets disconnected from anything it is connected to, but remains closed.

I think this stay truer to the existing functionality where when a way is selected, the way is disconnected independently and every other connection remains as it was. Chances are that the user just wants to disconnect the closed way from the junction node, rather than opening up the way as well (which they can just do after if that was actually their intention)

If they do want to disconnect everything at the junction node, they can just right click the node without selecting any connected ways, and everything will be disconnected as usual.

disconnect_closed_way2

disconnect_closed_way1

I've also added a fix so that the option to disconnect doesn't even appear unless all selected ways are connected to the selected node, to save confusion on what actually will be disconnected, which is closer to how it was before #6149 was fixed.

disconnect_closed_way3

@jguthrie100 jguthrie100 changed the title Closed way doesn't get unclosed when disconnecting as part of a larger operation Leave way as closed when disconnecting as part of a larger operation Apr 8, 2019
@jguthrie100 jguthrie100 changed the title Leave way as closed when disconnecting as part of a larger operation Leave way as closed when disconnecting Apr 8, 2019
@quincylvania quincylvania merged commit 50a0982 into openstreetmap:master Apr 8, 2019
@quincylvania quincylvania added this to the 2.15.0 milestone Apr 8, 2019
@quincylvania quincylvania added the operation An editing operation / edit menu item label Apr 8, 2019
@quincylvania
Copy link
Collaborator

@jguthrie100 Thanks so much! This is the way I should have solved it to begin with 🙈

@jguthrie100
Copy link
Contributor Author

We live and learn! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
operation An editing operation / edit menu item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants