Footprint copied to another library isn't active, changes made to the original are lost

Bug #1805413 reported by eelik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
High
Jeff Young

Bug Description

1. Begin making changes to a footprint.
2. Notice it was read-only.
3. Copy the footprint from the tree view.
4. Paste to another library.

The modified footprint, which is visible in the editor area, should now be active and copied. But it's actually the original footprint in the modified form which is active and visible in the editor area. All changes are lost unless they are copied from the editor area before the original fp is closed and discarded. Then they must be pasted to the new footprint, but the fp in the original form is still there, so further editing is needed.

Could it also be good to open read-only footprints in read-only mode that they can't be edited at all? Or to show a confirmation dialog when the user tries to begin editing?

Application: kicad
Version: (6.0.0-rc1-dev-1238-gae6989f3a), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Tags: pcbnew
eelik (eelik)
description: updated
description: updated
Jeff Young (jeyjey)
Changed in kicad:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Jeff Young (jeyjey)
milestone: none → 5.1.0
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 8ca0fe6722fe8ce032c8c17ad52434a1ebdb6fe2
https://git.launchpad.net/kicad/patch/?id=8ca0fe6722fe8ce032c8c17ad52434a1ebdb6fe2

Changed in kicad:
status: In Progress → Fix Committed
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.

Other bug subscribers

Remote bug watches

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