[kmymoney] [Bug 451677] crashes on new category with a double colon

2022-03-19 Thread Thomas Baumgart via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=451677

--- Comment #1 from Thomas Baumgart  ---
Git commit 464b05dbaa11ef31593184828726bbf2f9820c92 by Thomas Baumgart.
Committed on 19/03/2022 at 16:49.
Pushed by tbaumgart into branch 'master'.

Rework checks in account / category editor

Show tooltips in case of problems, eg percentage out of range, name
missing or :: part of name

M  +41   -26   kmymoney/dialogs/knewaccountdlg.cpp
M  +93   -99   kmymoney/dialogs/knewaccountdlg.ui
M  +1-1kmymoney/widgets/kmymoneyselector.cpp

https://invent.kde.org/office/kmymoney/commit/464b05dbaa11ef31593184828726bbf2f9820c92

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 451677] New: crashes on new category with a double colon

2022-03-19 Thread Joao Matos via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=451677

Bug ID: 451677
   Summary: crashes on new category with a double colon
   Product: kmymoney
   Version: 5.1.2
  Platform: Debian testing
OS: Linux
Status: REPORTED
  Severity: crash
  Priority: NOR
 Component: general
  Assignee: kmymoney-devel@kde.org
  Reporter: bug.i2...@aleeas.com
  Target Milestone: ---

Created attachment 147591
  --> https://bugs.kde.org/attachment.cgi?id=147591&action=edit
backtrace of the crash

SUMMARY
***
Looks similar to this one that was fixed on the CVS importer code
https://marc.info/?l=kmymoney-devel&m=161617380432300&w=2
https://bugs.kde.org/show_bug.cgi?id=434605

STEPS TO REPRODUCE
right click 'Expense'; 'New category'; add a new category: name it anything
with a double colon like 1::1 or a::a


OBSERVED RESULT
Crashes and leaves a window with the following message: 
"Account has no name ./kmymoney/mymoney/mymoneyfile.cpp:939"

EXPECTED RESULT
a category with name with a double colon eg a::a

SOFTWARE/OS VERSIONS
See below debian bug report

ADDITIONAL INFORMATION
debian bug report
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1007871

-- 
You are receiving this mail because:
You are the assignee for the bug.