Bug 424897

Summary: When saving a project file, add the extension .xmi to the name if no other extension is provided
Product: [Applications] umbrello Reporter: Robert Hairgrove <code>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: minor CC: okellogg
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 2.33.80 (KDE releases 22.03.80)
Sentry Crash Report:

Description Robert Hairgrove 2020-08-01 14:01:30 UTC
SUMMARY
After saving the project file, the filters shown are set to *.xmi. The user can enter a file name, but if no extension is added, it will not be found in the next session when browsing for .xmi files. This can be very confusing because most other applications will add the extension automatically, and users tend to expect that behavior.


STEPS TO REPRODUCE
1. Save a project under any name without typing the extension ".xmi";
2. Close Umbrello, then open it again;
3. Try to open the file which was saved in the previous session.

OBSERVED RESULT
The file previously saved is not shown when browsing for it because the file dialog has no filter "All files (*)" in addition to the "*.xmi." rule.

EXPECTED RESULT
The saved file should be shown as an .xmi file.

SOFTWARE/OS VERSIONS
Linux Ubuntu 18.04.4
Qt Version: 5.x

ADDITIONAL INFORMATION
Related to bug 395384
Comment 1 Robert Hairgrove 2020-08-01 14:09:34 UTC
Actually, this has to do with the mangling of the file filters when the Gnome/Gtk native file dialog is used:

https://bugreports.qt.io/browse/QTBUG-78557

Perhaps this could be a user-configurable option to add the .xmi part automatically?