Version: 4.6.1 (using KDE 4.7.4) OS: Linux In the save as dialog, when selecting filter to "Anonymous file" while the option "Automatically select file name extension" is active will make the file type be .XML If the automatic file extension feature is off, you can select the filter "Anonymous file", but the file will keep the previously used extension i.e. .kmy or .xml and is not saved as anonymous file. Reproducible: Always Steps to Reproduce: As stated in the details section Actual Results: The only way to get an anonymous file is to set extension name feature manual, set the filter to anonymous and type in the desired file extension. Expected Results: Automatic file extension feature should never influence the file filter field.
I'm using 4.6.1, and there is clearly something funny going on. First, when I open the save as dialog, the filename is pre-populated with a recent name I have saved as, but not the name of the currently open file. On subsequent tries, it uses a different name. With Auto Extension off, if I change the Filter to Anonymous files, the file name does not change, and it saves as a plain kmy file. If I make any change to the file name, it resets the filter to all files. The only way I can find to actually save an anonymous file is to turn off auto extension, blank out the file name, filter on all files, type the file name (no extension,) filter on anonymous files, then turn auto extension on. In addition, even though it does save an anonymous file, the app is still displaying my kmy file, not the anonymous version it just saved.
Jack can you reproduce this with the current version?
The problem is still present with git master. (Discovered saving an anonymous file to test a different bug.)
Based on comment #3.
Git commit 41e6c3d24412ba7b1999ae0ac1b5a39ac4958400 by Łukasz Wojniłowicz. Committed on 14/05/2017 at 04:40. Pushed by wojnilowicz into branch 'master'. Port KMyMoneyApp::slotFileSaveAs() to KF5 It seems that okToWriteFile isn't needed, because native QFileDialog prompts in case of overwriting file and is able to point remote location. FIXED-IN:5.0 Differential Revision: https://phabricator.kde.org/D5688 M +46 -78 kmymoney/kmymoney.cpp https://commits.kde.org/kmymoney/41e6c3d24412ba7b1999ae0ac1b5a39ac4958400