Saving with an existing file name overwrites the file without warning

• Mar 4, 2013 - 18:04
Type
Functional
Severity
S2 - Critical
Status
closed
Project

If a file exists, saving with this existing file name and omitting the extension overwrites the file without warning.
Steps:
1. Create a file and save it.
2. Create a new file and save it using the same file name as the previous, but leave out the file extension.

Result: The second file overwrites the first file without any warning.
Using latest development version 8d4b08d3146a9e81fe61f21b8d0f4937c1947697


Comments

This seems to be a bug in the Qt framework (QFileDialog): if the file name typed in lacks the extension, the Qt dialog does not notice if the file name + the selected file type matches an existing file.

Worth adding ad hoc code? (probably near the end of MuseScore::exportFile() ).

Anybody knows if it has been fixed in Qt 5.x?

M.