Bug 458680 - "kmymoney -n" does not remember there is no file open
Summary: "kmymoney -n" does not remember there is no file open
Status: RESOLVED INTENTIONAL
Alias: None
Product: kmymoney
Classification: Applications
Component: general (other bugs)
Version First Reported In: git (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-03 23:16 UTC by Jack
Modified: 2022-09-05 22:41 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".