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

DXF importer imports file despite clicking on the Cancel button #13620

Open
2 tasks done
furgo16 opened this issue Apr 24, 2024 · 4 comments
Open
2 tasks done

DXF importer imports file despite clicking on the Cancel button #13620

furgo16 opened this issue Apr 24, 2024 · 4 comments

Comments

@furgo16
Copy link
Contributor

furgo16 commented Apr 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

Steps to reproduce:

  1. These steps assume the "Show this dialog when importing and exporting" under Preferences > Import-Export >DXF is checked
  2. Go to File > Import...
  3. Select a DXF file. The DXF import/export window opens
  4. Click on Cancel
  5. Expected: the import/export window closes, no further action is taken
  6. Actual: the import/export window closes, the DXF file is imported and the document is populated with the imported entities

Full version info

OS: Ubuntu Core 22 (ubuntu:GNOME/ubuntu-xorg)
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.36967 (Git) Snap 997
Build type: Release
Branch: main
Hash: 24657494c9b142e688c1910ecb34083f88ef78be
Python 3.10.12, Qt 5.15.10, Coin 4.0.0, Vtk 7.1.1, OCC 7.7.1
Installed mods: 
  * OpenTheme 2024.4.20
  * BIM 2021.12.0
  * ezydxf
  * Assembly4 0.50.12
  * ExplodedAssembly

Subproject(s) affected?

File formats

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@furgo16 furgo16 changed the title DXF importer imports file when clicking on the Cancel button DXF importer imports file despite clicking on the Cancel button Apr 24, 2024
@Roy-043
Copy link
Contributor

Roy-043 commented Apr 25, 2024

The Cancel button is only related to the Preferences editor.

@yorikvanhavre
Copy link
Member

Ideally, the dialog that pops up when the dxf importer starts, would not be the preferences editor itself, but a different dialog tailored for that purpose only...

@furgo16
Copy link
Contributor Author

furgo16 commented Apr 29, 2024

image

The Cancel button is only related to the Preferences editor.

Indeed, I've realized that now. Regardless, it comes as a surprise to the user that clicking on the Cancel button there is any action taken at all.

It took me a while to understand that this was happening, as I was testing different import settings and importers to correctly import my DXF files. It only dawned on me when I saw that in one of my files the DXF had been imported twice.

Ideally, the dialog that pops up when the dxf importer starts, would not be the preferences editor itself, but a different dialog tailored for that purpose only...

That was my thought as well. I'll file a separate issue.

@furgo16
Copy link
Contributor Author

furgo16 commented May 1, 2024

Filed #13751 as a follow up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants