Bug 402303 - Kmymoney closes document without confirmation on Ctrl+N
Summary: Kmymoney closes document without confirmation on Ctrl+N
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.0.2
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-18 14:17 UTC by Alexander Potashev
Modified: 2018-12-18 16:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (15.64 KB, image/png)
2018-12-18 16:00 UTC, Alexander Potashev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2018-12-18 14:17:48 UTC
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
Comment 1 Thomas Baumgart 2018-12-18 15:43:03 UTC
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.
Comment 2 Alexander Potashev 2018-12-18 15:59:39 UTC
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.
Comment 3 Alexander Potashev 2018-12-18 16:00:02 UTC
Created attachment 116997 [details]
screenshot