Bug 439016

Summary: 0.50.1 A saved circuit (without .circuit filetype) just shows XML when reloaded
Product: [Applications] KTechLab Reporter: brewmanz
Component: generalAssignee: Zoltan Padrah <zoltan.padrah>
Status: CONFIRMED ---    
Severity: normal CC: julian
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description brewmanz 2021-06-22 05:12:31 UTC
SUMMARY
I saved a simple circuit schematic which was kinda working; I do not recall it telling me to use 'circuit' extension as I did so.
When I restarted the app, it reloaded that file as just XML. When I renamed the file by adding '.circuit', it opened fine (after protests at startup that it couldn't find the file).

STEPS TO REPRODUCE
1. Create new file of type 'Circuit'
2. Add some schematic stuff
3. File - Save As - 'deleteme'
4. Restart KTechLab. 

OBSERVED RESULT
It will reload 'deleteme' as an XML file

EXPECTED RESULT
Either
A) Open the 'deleteme' circuit as a circuit
or
B) Append '.circuit' to circuits saved with an extension

SOFTWARE/OS VERSIONS
Linux Ubuntu 20.04 LTS

/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: Unsure

ADDITIONAL INFORMATION
Add "0.50.1" to Version combobox
Comment 1 Zoltan Padrah 2021-06-22 06:30:30 UTC
Thank you for reporting this issue!

The behavior B) from expected results sounds to me good and should be simple to implement.
Comment 2 Zoltan Padrah 2022-08-09 10:36:18 UTC
Duplicate here :  https://github.com/ktechlab/ktechlab/issues/72