Bug 512749

Summary: Show warning frame around category only when leaving category widget
Product: [Applications] kmymoney Reporter: tnemeth
Component: ux-uiAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 5.2.1   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tnemeth 2025-11-29 11:25:56 UTC
SUMMARY

When changing fields using TAB, a red dotted line appears around the category entry area even though it's not yet time to input it.

STEPS TO REPRODUCE
1. Create a new operation
2. Input the date (which, for a completely new operation, is, strangely, not "today")
3. Use tab to switch to the amount entry area
4. The category entry area is surrounded by a red dotted rectangle.

OBSERVED RESULT
The category entry area is surrounded by a red dotted rectangle.

EXPECTED RESULT
The category entry area should not be surrounded by a red dotted rectangle.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 13
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.9.2
Kernel Version: 6.17.8+deb14-amd64 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-7567U CPU @ 3.50GHz
Memory: 32 Gio of RAM (31.2 Gio usable)
Graphics Processor: Intel® Iris® Plus Graphics 650
Comment 1 Thomas Baumgart 2025-11-29 13:50:31 UTC
Are you sure you did not enter an amount in either credit or debit? Only if that is not equal to zero the red dotted line will be displayed. A tooltip should tell you the reason (missing category assignment).
Comment 2 tnemeth 2025-11-29 14:24:51 UTC
(In reply to Thomas Baumgart from comment #1)
> Are you sure you did not enter an amount in either credit or debit? Only if
> that is not equal to zero the red dotted line will be displayed. A tooltip
> should tell you the reason (missing category assignment).

    You are right: it's when I entered a debit amount, then moved, using tab, to
    the next field which was the credit amount.

    Whatever: why a category should be mandatory and if so, marked in red
    at this point in time. If you really need the category to be mandatory, then
    mark it in red _after_ passing through the field with no input :)
Comment 3 Thomas Baumgart 2025-11-30 10:31:30 UTC
> Whatever: why a category should be mandatory and if so, marked in red
> at this point in time. If you really need the category to be mandatory, then
> mark it in red _after_ passing through the field with no input :)

KMyMoney shows a dashed line to catch the users attention (which apparently has worked). A category assignment is not strictly necessary but leads to false reporting. This is what double-entry accounting is all about.

I understand your wish to postpone the display of the red frame. This is a bit more complex in cases where the tab order has been modified. Therefore, I turn this into a wish list item and adjust the title.