Summary: | Welcome page no longer shown after closing a book | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Dawid Wróbel <me> |
Component: | ux-ui | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ralf.habacker |
Priority: | NOR | ||
Version First Reported In: | git (master) | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Other | ||
Latest Commit: | https://invent.kde.org/office/kmymoney/commit/71a67b8280d45e42820550f45e8488a8519b87da | Version Fixed In: | 5.2 |
Sentry Crash Report: |
Description
Dawid Wróbel
2022-10-13 14:20:37 UTC
(In reply to Dawid Wróbel from comment #0) > Recent changes in master case the welcome page no longer shown when no book > is loaded. It shows for a second but gets replaced by an empty graphs — "Net > Worth Forecast" in my case. Thanks for pointing this out, which is probably an issue with https://invent.kde.org/office/kmymoney/-/commit/897ccf9e4163c1f42e254bd81dd914827938a12d The simplest solution is to revert this commit, fixing that commit will need some investigation. (In reply to Ralf Habacker from comment #1) > The simplest solution is to revert this commit, I did that, but it didn't help. The reason for this issue is that KMyMoneyView::loadView() does not recognize the "closed file" case. Git commit 71a67b8280d45e42820550f45e8488a8519b87da by Ralf Habacker. Committed on 14/10/2022 at 07:08. Pushed by habacker into branch 'master'. Fix 'Welcome page no longer shown after closing a book' KHomeViewPrivate::loadView() did not recognize the case "file close". M +5 -1 kmymoney/views/khomeview.cpp M +5 -0 kmymoney/views/khomeview_p.h https://invent.kde.org/office/kmymoney/commit/71a67b8280d45e42820550f45e8488a8519b87da (In reply to Ralf Habacker from comment #3) > Git commit 71a67b8280d45e42820550f45e8488a8519b87da by Ralf Habacker. .. > KHomeViewPrivate::loadView() did not recognize the case "file close". This problem only occurs in the master branch. In 5.1and 4.8 this is detected correctly (see https://invent.kde.org/office/kmymoney/-/blob/5.1/kmymoney/views/khomeview_p.h#L417). |