SUMMARY Kmymoney closes document without confirmation on Ctrl+N. STEPS TO REPRODUCE 1. open a .kmy document 2. press Ctrl+N 3. click Cancel OBSERVED RESULT The previously opened .kmy document is now closed. EXPECTED RESULT Should either A. ask confirmation before closing document or B. open the new document in another window SOFTWARE/OS VERSIONS Windows: MacOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.14.4 KDE Frameworks Version: 5.52.0 Qt Version: 5.11.1 ADDITIONAL INFORMATION
A confirmation is shown as soon as the currently opened file has been changed and needs to be saved. An improvement would be to ask for a confirmation if the user really wants to create a new file.
This is how it works in IDEs by JetBrains, and I like this approach: 1. If you have a currently open project, it can be closed by File -> Close Project. KMyMoney also has "File -> Close" which is good. 2. When clicking File -> Open..., you are presented with a file/folder open dialog "Open File or Project". If you choose a folder, then it assumes you want to open another project so it asks you to choose one of the options, see screenshot. Until you answer affirmatively here, the current project is not closed. For example, you can click File->Open, even choose another project but then change your mind and click Cancel - the previous project is still there opened.
Created attachment 116997 [details] screenshot