Bug 458680

Summary: "kmymoney -n" does not remember there is no file open
Product: [Applications] kmymoney Reporter: Jack <ostroffjh>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jack 2022-09-03 23:16:57 UTC
If you run "kmymoney file" then quit followed by "kmymoney" it opens "file" as the last file it had open.  On the other hand, if you run "kmymoney filen" then quit, then "kmymoney -n" it opens with no data file.  If you then quit and run "kmymoney" it will open "file" and not remember that no file was open the last time it was running.

If the intent is literally to open the last file which was open in the program, then this behavior is correct.  However, I would expect it to open the file which was open when kmymoney last ran, including remembering that no file was open.

Is this behavior intentional, or an unintended edge case? 

Note, the behavior seems the same in both 5.1 and master branch.
Comment 1 Thomas Baumgart 2022-09-04 10:03:06 UTC
As far as I see it, this is intended behavior. As you mention, KMyMoney opens "the last file it had open". Starting it without opening a file does not change the "last file it had open", IMHO. If you agree, we should close this as FIXED/INTENTIONAL.
Comment 2 Jack 2022-09-05 22:41:57 UTC
I was thinking of making this a wishlist, but I suppose there is no real point, as the same effect is gotten using "-n".