Christopher Lam
1b50c6261a
g_list_free xaccAccountGetSplitList
2024-04-16 00:09:52 +08:00
Christopher Lam
606da28d25
use xaccAccountGetSplitsSize
2024-04-16 00:09:52 +08:00
Christopher Lam
f70ee754fc
use xaccAccountGetSplits and gnc_account_find_split
2024-04-16 00:09:52 +08:00
Christopher Lam
3f7a5a8267
[Account.hpp][API] xaccAccountGetSplits and gnc_account_find_split
2024-04-16 00:09:52 +08:00
Christopher Lam
a54caaab61
[Account.cpp] GetBalanceAsOfDate gets std::function instead of bool
2024-04-15 23:21:16 +08:00
Christopher Lam
cc10b9a0b7
[SX-book.c] tidy for loop
...
because splits will need to be g_list_free in a future commit
2024-04-15 22:22:48 +08:00
Christopher Lam
f21f4f4264
[gnc-autoclear.c] tidy xaccAccountGetSplitList
...
because acc_splits will need to be g_list_free in a future commit
2024-04-15 22:22:48 +08:00
Christopher Lam
6eed5b6641
[split-register-control.cpp] convert to c++
2024-04-15 22:22:48 +08:00
Christopher Lam
508679e338
[window-reconcile.cpp] convert to c++
2024-04-15 22:22:48 +08:00
Christopher Lam
957b6e3afa
[register/*.h] add extern "C" {} wrappers
2024-04-15 22:22:48 +08:00
Szia Tomi
6d7e231e5a
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 75.4% (4206 of 5571 strings; 423 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-04-15 00:45:04 +02:00
Christopher Lam
c1ee59c39b
[Account.h] size_t xaccAccountGetSplitsSize returns g_list_length (splits)
...
which is easily replaced with vector.size()
2024-04-14 23:29:20 +08:00
Christopher Lam
f08e0f5b61
[policy.cpp] rewrite to avoid goto
2024-04-14 23:29:20 +08:00
Milo Ivir
a272a0336d
Translation update by Milo Ivir <mail@milotype.de> using Weblate
...
po/hr.po: 97.2% (5420 of 5571 strings; 58 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Co-authored-by: Milo Ivir <mail@milotype.de>
2024-04-13 21:01:51 +02:00
Szia Tomi
585a8bb162
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 75.4% (4206 of 5571 strings; 423 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-04-13 21:01:50 +02:00
Christopher Lam
2251bf8966
[Account.hpp] use std::optional for cached values
...
whereby {} denotes uncached values
2024-04-13 20:56:55 +08:00
John Ralls
01bffa485a
Merge Sherlock's fix for Bug 799281 into stable.
2024-04-12 16:43:59 -07:00
Sherlock
f0d45de642
Resolve test assert.
2024-04-12 15:52:39 -07:00
Sherlock
8d6f748aca
Bug 799281 - Deleting a transaction may trigger a crash
...
Update qof_collection_lookup_entity() to prevent returning instances marked to be destroyed.
2024-04-12 15:34:14 -07:00
Frank H. Ellenberger
0796a0ef06
Merge PR #1906 into stable
2024-04-13 00:29:11 +02:00
Robert Zelnik
a79c1dd3ce
Translation update by Robert Zelnik <rzelnik@tvorivo.sk> using Weblate
...
po/sk.po: 94.2% (5248 of 5571 strings; 53 fuzzy)
43 failing checks (0.7%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/
Co-authored-by: Robert Zelnik <rzelnik@tvorivo.sk>
2024-04-12 17:17:52 +02:00
Christopher Lam
cde6b095c0
Merge branch 'bi-import-segfault' into stable #1899
2024-04-12 23:14:28 +08:00
Christopher Lam
df0fc05223
Merge branch 'more-engine-cpp' into stable #1889
2024-04-12 23:13:50 +08:00
John Ralls
fafc745b1b
Bug 799272 - Crashes when pasting a copied transaction
...
Clear the copied_item, copied_class, and copied_leader_guid on book
close to ensure that they're not carried across sessions.
2024-04-11 17:38:44 -07:00
наб
da659cf765
Fix invalid-$DISPLAY error being non-text
...
Given
nabijaczleweli@tarta:~$ DISPLAY=komputerek-x40.:0 gnucash
Run 'g --help' to see a full list of available command line options.
Error: could not initialise graphical user interface and option add-price-quotes was not set.
Perhaps you need to set the $DISPLAY environment variable?nabijaczleweli@tarta:~$
we can obviously see the error output isn't a text file.
2024-04-11 18:48:46 +02:00
Christopher Lam
8c94132f13
Bug 799268 - Cannot write a check over $1000
...
this is caused by d52d226e5b
which caused log_val, pow_val, this_part
to be kept as float instead of the original algorithm which required
casting to int.
2024-04-10 13:30:59 +08:00
Christopher Lam
0447e8da3a
[gnc-currency-edit.cpp] convert to c++
2024-04-09 23:37:56 +08:00
Christopher Lam
f2dba525f7
[dialog-commodity.cpp] convert to c++
2024-04-09 21:07:52 +08:00
Christopher Lam
4f5ee5dc4e
[dialog-price-edit-db.cpp] plug GList* leaks
...
because `namespace_list` and `commodity_list` were being modified in
while loops until they were both nullptr, making g_list_free a
nop. rewrite to plug leaks. also, `list` is a PriceList* which needs
to be gnc_price_unref'd and g_list_freed.
2024-04-09 00:37:26 +08:00
Christian Wehling
233843f151
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
...
po/de.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/
Co-authored-by: Christian Wehling <christian.wehling@web.de>
2024-04-07 22:02:07 +02:00
наб
c859d51f14
Translation update by наб <nabijaczleweli@nabijaczleweli.xyz> using Weblate
...
po/pl.po: 71.1% (3963 of 5571 strings; 1090 fuzzy)
305 failing checks (5.4%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Co-authored-by: наб <nabijaczleweli@nabijaczleweli.xyz>
2024-04-07 22:02:06 +02:00
Szia Tomi
29342221af
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 75.4% (4205 of 5571 strings; 424 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.4% (4205 of 5571 strings; 424 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-04-07 22:02:05 +02:00
наб
cab6173cd5
Translation update by наб <nabijaczleweli@nabijaczleweli.xyz> using Weblate
...
po/pl.po: 71.1% (3963 of 5571 strings; 1092 fuzzy)
305 failing checks (5.4%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Co-authored-by: наб <nabijaczleweli@nabijaczleweli.xyz>
2024-04-05 19:01:57 +02:00
aleksej0R
5d4ab9e013
Translation update by aleksej0R <omolice@hotmail.fr> using Weblate
...
po/fr.po: 98.9% (5510 of 5571 strings; 58 fuzzy)
47 failing checks (0.8%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/
Co-authored-by: aleksej0R <omolice@hotmail.fr>
2024-04-05 19:01:57 +02:00
mocsa
8de60c9494
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
...
po/hu.po: 75.4% (4205 of 5571 strings; 424 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: mocsa <csaba@feltoltve.hu>
2024-04-05 19:01:56 +02:00
Szia Tomi
6bd08a3222
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 75.4% (4205 of 5571 strings; 424 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/glossary/hu.po: 100.0% (212 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.4% (4205 of 5571 strings; 424 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.4% (4201 of 5571 strings; 428 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.3% (4200 of 5571 strings; 429 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/glossary/hu.po: 100.0% (212 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.3% (4197 of 5571 strings; 431 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-04-05 19:01:56 +02:00
John Ralls
3285bb8e6c
Merge Guido Falsi's 'i386_site_type_fix' into stable.
2024-04-04 10:23:54 -07:00
Guido Falsi
ca826d155b
Use correct literal suffix for size_type
.
...
`std::vector<T,Allocator>::size` returns `size_type`. `%ld` works
fine on 64 bit arches, but fails on 32 bit.
Ref.: https://en.cppreference.com/w/cpp/container/vector/size
https://en.cppreference.com/w/cpp/types/size_t
2024-04-03 16:07:11 +02:00
Christopher Lam
d100df7ef7
[AccountP.hpp] .h -> .hpp, remove extern "C" {} wrapper
2024-04-02 21:09:40 +08:00
Christopher Lam
a67e4651c3
[Query.cpp] convert to cpp
2024-04-02 21:09:40 +08:00
Christopher Lam
4d9836aac2
[TransLog.cpp] convert to cpp
2024-04-02 21:09:40 +08:00
Christopher Lam
093781c018
[policy.cpp] convert to cpp
2024-04-02 21:09:40 +08:00
Christopher Lam
f913bed7e6
[gnc-engine.cpp] convert to cpp
2024-04-02 21:09:40 +08:00
Christopher Lam
96f041a1d6
[cap-gains.cpp] convert to cpp
2024-04-02 21:09:39 +08:00
Christopher Lam
79b7267cdd
[cashobjects.cpp] convert to cpp
2024-04-02 21:09:39 +08:00
Christopher Lam
67d024c11f
[Scrub3.cpp] convert to cpp
2024-04-02 21:09:39 +08:00
Christopher Lam
6b5a4d7c11
[Scrub2.cpp] convert to cpp
2024-04-02 21:09:39 +08:00
Christopher Lam
ddfa664601
[Scrub.cpp] convert to cpp
2024-04-02 21:09:39 +08:00
Christopher Lam
dab32807ef
[engine/*.cpp] NULL -> nullptr changes
...
It's the done thing
2024-04-02 21:09:39 +08:00
Christopher Lam
9a85eb4a2a
[engine/*.h] add extern "C" {} wrappers
2024-04-02 21:09:39 +08:00