Bug 424897 - When saving a project file, add the extension .xmi to the name if no other extension is provided
Summary: When saving a project file, add the extension .xmi to the name if no other ex...
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: unspecified Linux
: NOR minor
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-01 14:01 UTC by Robert Hairgrove
Modified: 2022-02-06 00:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.33.80 (KDE releases 22.03.80)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?