Don't "Clarify selection" if it doesn't matter

Bug #1708869 reported by pipe
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Wishlist
Jeff Young

Bug Description

When selecting a track that is close to another track, or overlaps (for example in a corner), KiCad opens a small pop-up with a list of tracks so you can select the one you want.

When using the "Copper Connection" or "Trivial Connection", this often does not matter, because all the tracks in the list belong to the same net anyway, so the outcome will be the same.

It would be a nice detail if KiCad knew this, and prevented the necessary step. It should have access to all the information already, so in theory it would just be a simple check to see if all tracks in the list belongs to the same net.

Changed in kicad:
importance: Undecided → Wishlist
Jeff Young (jeyjey)
Changed in kicad:
status: New → Triaged
Jeff Young (jeyjey)
Changed in kicad:
assignee: nobody → Jeff Young (jeyjey)
status: Triaged → In Progress
Revision history for this message
Jeff Young (jeyjey) wrote :

Patch uploaded for consideration.

Revision history for this message
Simon Richter (sjr) wrote :
Revision history for this message
Simon Richter (sjr) wrote :

Jeff, the build failed with your patch, I suspect because of the CMakeLists.txt changes.

Revision history for this message
Jeff Young (jeyjey) wrote : Re: [Bug 1708869] Re: Don't "Clarify selection" if it doesn't matter

Rats; looking at the CMakeLists.txt changes in the patch it looks like I reverted any material changes and all that’s left is cleanup of duplicated includes. So you should be able to remove it from the patch.

> On 9 Jan 2018, at 21:15, Simon Richter <email address hidden> wrote:
>
> Jeff, the build failed with your patch, I suspect because of the
> CMakeLists.txt changes.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1708869
>
> Title:
> Don't "Clarify selection" if it doesn't matter
>
> Status in KiCad:
> In Progress
>
> Bug description:
> When selecting a track that is close to another track, or overlaps
> (for example in a corner), KiCad opens a small pop-up with a list of
> tracks so you can select the one you want.
>
> When using the "Copper Connection" or "Trivial Connection", this often
> does not matter, because all the tracks in the list belong to the same
> net anyway, so the outcome will be the same.
>
> It would be a nice detail if KiCad knew this, and prevented the
> necessary step. It should have access to all the information already,
> so in theory it would just be a simple check to see if all tracks in
> the list belongs to the same net.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1708869/+subscriptions

Revision history for this message
Jeff Young (jeyjey) wrote :

Patch without CMakeLists changes. (It's also re-based, although that didn't change anything in the patch other than the reference hash.)

This builds cleanly on my machine (but then the previous one did too).

Revision history for this message
Simon Richter (sjr) wrote :

Compiled fine: http://darine.hogyros.de:8080/job/windows-kicad-msys2-patch/32/

1 new warning:

fp_conflict_assignment_selector.cpp:82: unused variable 'item' [-Wunused-variable]

Revision history for this message
Kristoffer (kristoffer-odmark) wrote :

Confirmed, patch works after revert of cmakelist changes.

Fixes the disambiguation menu popping up everywhere.

Revision history for this message
Jeff Young (jeyjey) wrote :

Hi Tom & Orson,

Did either of you have a chance to look at this yet?

Cheers,
Jeff.

[1] https://bugs.launchpad.net/bugs/1708869 <https://bugs.launchpad.net/bugs/1708869>
[2] http://darine.hogyros.de:8080/job/windows-kicad-msys2-patch/32/ <http://darine.hogyros.de:8080/job/windows-kicad-msys2-patch/32/>
[3] https://launchpadlibrarian.net/353027266/0001-Avoid-selection-disambiguation-menu-when-possible.patch <https://launchpadlibrarian.net/353027266/0001-Avoid-selection-disambiguation-menu-when-possible.patch>

> On 10 Jan 2018, at 17:29, Kristoffer <email address hidden> wrote:
>
> Confirmed, patch works after revert of cmakelist changes.
>
> Fixes the disambiguation menu popping up everywhere.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1708869
>
> Title:
> Don't "Clarify selection" if it doesn't matter
>
> Status in KiCad:
> In Progress
>
> Bug description:
> When selecting a track that is close to another track, or overlaps
> (for example in a corner), KiCad opens a small pop-up with a list of
> tracks so you can select the one you want.
>
> When using the "Copper Connection" or "Trivial Connection", this often
> does not matter, because all the tracks in the list belong to the same
> net anyway, so the outcome will be the same.
>
> It would be a nice detail if KiCad knew this, and prevented the
> necessary step. It should have access to all the information already,
> so in theory it would just be a simple check to see if all tracks in
> the list belongs to the same net.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1708869/+subscriptions

Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 3f6af59cac75a56828f73fe57ccdc33edb320e25
https://git.launchpad.net/kicad/patch/?id=3f6af59cac75a56828f73fe57ccdc33edb320e25

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
Jeff Young (jeyjey) wrote :

For posterity, this patch is the one that was committed. (It contains a drag bug fix over the original.)

Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.