← All bug reports

FS#1145Closing inactive tab of a modified drawing: drawing file name mixup

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
High
Priority
Low
Reported version
3.7.2
Operating system
Linux (All / Other)
Reported
2014-12-10 by shoemann
Closed
2014-12-10 by andrew

Steps to reproduce:

1. Create new drawing and fill it with some contents that's easy to distinguish, for example text "DRAWING 1".
2. Save it as dr1.dxf
3. Close it
4. Open dr1.dxf
5. Edit it, for example change text from "DRAWING 1" to "DRAWING 2"
6. Save changed file as dr2.dxf
7. Close it
8. Open dr1.dxf (it should have content "DRAWING 1")
9. Open dr2.dxf (it should have content "DRAWING 2")
10. Close tab dr1.dxf
10.1 Qcad will ask you to save changes.
10.2 Press "Yes" --> nothing happens, dialog doesn't disappear.
10.3 Press "Discard" --> dialog disappears, tab gets closed
10.4 Tab that has content of file dr2.dxf ("DRAWING 2") remains open but gets title "dr1.dxf" (!)
11. Close tab
12. Press "Yes" in dialog that asks to save changes

Results:
1. Open dr1.dxf
2. Open dr2.dxf
As you can see, both files have equal contents ("DRAWING 2")

Expected results:

1. Files have their own contents.
2. Dialogs asking to save files disappear when checking "Yes", "Cancel" or "Discard"
3. Tabs don't change titles and associated file names when other tabs are closed.

Comments (4)

andrew 2014-12-10

Thanks for your report.

Can you please indicate if this is QCAD Professional or the free QCAD Community Edition?

Also, did you download a precompiled binary from our web site or compile it yourself?
In the latter case, what Qt version did you use?

Thanks.

shoemann 2014-12-10

This is community edition, I did neither download it from your site, nor compile. I've installed it with a package manager of my ArchLinux. Here's the details they
provide on a package: https://www.archlinux.org/packages/community/x86_64/qcad/

If it's needed I can do things like ldd or whatever on it.

andrew 2014-12-10

Thanks for the details. This has been fixed for the next release.

Workaround: Always activate tab before closing it.

shoemann 2014-12-10

Thank you very much! I've asked package maintainers to rebuild it.