Christopher Lam
34564ef6d0
[test-qofobject] plug some leaks
2023-09-15 23:34:43 +08:00
Christopher Lam
8277f4d559
[test-qofbook] plug leaks
2023-09-15 23:34:43 +08:00
Christopher Lam
0056e5f091
[gtest-import-map] plug leaks
2023-09-15 23:34:43 +08:00
Christopher Lam
235e24a055
[account.cpp] ~GncImapInfo = gnc_account_imap_info_destroy
2023-09-15 23:34:43 +08:00
Christopher Lam
db77fb81a5
[test-job] plug leaks
2023-09-15 23:34:43 +08:00
Christopher Lam
a8dffb8559
[gnc-date.cpp] don't alloc tm* unless GncDateTime() succeeds
...
because GncDateTime() may throw an exception, in which case time will
leak. mainly leaks in test suite.
2023-09-15 23:33:47 +08:00
Christopher Lam
5a03d9798c
[gnc-sx-instance-model] g_free char*
2023-09-15 23:33:47 +08:00
John Ralls
3b3da080b1
Bug 798709 - Total(Period) column does not refresh period's value...
...
after update of the period in settings.
Set a callback on the applicable preferences to refresh the accouts page.
2023-09-14 18:04:49 -07:00
Jeff Shelley
04545fab11
728910: Made report handle liabilities correctly
2023-09-14 15:20:09 -05:00
Zdenko Podobný
9f385bd369
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
...
po/sk.po: 67.7% (3745 of 5524 strings; 826 fuzzy)
299 failing checks (5.4%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/
Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-09-14 18:55:17 +02:00
Christopher Lam
5a8ee33f06
[test-autoclear] plug memory leaks
2023-09-14 22:30:48 +08:00
Christopher Lam
49c3c5dc2e
[gnc-autoclear] Store gnc_numeric.num only in GHashTable
...
no need for extra alloc
2023-09-14 22:30:42 +08:00
Christopher Lam
757c1cac31
[gnc-autoclear] [upgrade] add ability to clear same-amount splits
2023-09-14 22:30:42 +08:00
Christopher Lam
0191b5f70b
[gnc-autoclear] use GError to signal errors
2023-09-14 19:44:56 +08:00
Zdenko Podobný
fa84a8caa1
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
...
po/sk.po: 65.2% (3606 of 5524 strings; 871 fuzzy)
314 failing checks (5.6%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
po/glossary/sk.po: 84.7% (183 of 216 strings; 16 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/sk/
Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-09-13 21:17:19 +02:00
Zdenko Podobný
8910b27598
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
...
po/sk.po: 61.8% (3417 of 5524 strings; 993 fuzzy)
314 failing checks (5.6%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/
Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-09-12 20:49:20 +02:00
John Ralls
16c9957cac
Bug 798925 - Python bindings: "invalid unclassed pointer...
...
in cast to 'QofInstance'".
The list ended up with two entries of payment_lot resulting in a
dangling reference when one of them was freed.
2023-09-11 17:40:48 -07:00
John Ralls
17ebb8a1d2
[simple-business-create.py] Overwrite an existing file instead of crashing.
2023-09-11 17:39:02 -07:00
Arve Eriksson
991f3d3a74
Translation update by Arve Eriksson <031299870@telia.com> using Weblate
...
po/sv.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Swedish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sv/
Co-authored-by: Arve Eriksson <031299870@telia.com>
2023-09-11 22:02:58 +02:00
Giuseppe Foti
a031ac671c
Translation update by Giuseppe Foti <foti.giuseppe@gmail.com> using Weblate
...
po/it.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Italian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/it/
Co-authored-by: Giuseppe Foti <foti.giuseppe@gmail.com>
2023-09-11 22:02:58 +02:00
Zdenko Podobný
3ab45da472
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
...
po/sk.po: 59.8% (3305 of 5524 strings; 1072 fuzzy)
333 failing checks (6.0%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
po/sk.po: 58.4% (3230 of 5524 strings; 1078 fuzzy)
334 failing checks (6.0%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/
Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-09-11 22:02:57 +02:00
John Ralls
3f3a85402a
Merge James White's 'assistant2' into stable
2023-09-10 21:25:23 -07:00
Jeremy White
5b6d61e854
Bug 728875 - Back button does not work in QIF import assistant
...
The current logic has each 'prepare' function jump us around in the assistant
flow in order to skip pages that aren't needed. But that logic only allows
forward movement, effectively breaking the back button.
This patch introduces a custom 'next page' function, which GtkAssistant
supports, along with a shift in the paradigm. Instead of the prepare
function jumping around, there is now a deliberate 'should I skip?' function
that is used to avoid displaying a page.
This does not make the flow perfect; unexpected exceptions still end the
process (see bug 698804) and going back with loaded files feels a bit clunky.
2023-09-10 21:24:00 -07:00
Jeremy White
7f420b53c0
Spelling fix: catagory -> category
2023-09-10 21:02:17 -05:00
Zdenko Podobný
c5a71f2464
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
...
po/sk.po: 57.8% (3195 of 5524 strings; 1103 fuzzy)
350 failing checks (6.3%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/
Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-09-11 00:09:15 +02:00
John Ralls
e3d682c0e5
Merge Richard Cohen's 'fix-gnc-mktime' into stable.
2023-09-10 15:08:32 -07:00
John Ralls
8a91fa8deb
Remove defective and fortunately unused typemap.
2023-09-10 15:06:46 -07:00
Richard Cohen
75f49aaec5
Valgrind: fix "definitely lost" memory in (gnc-mktime) - test-invoice-report-builtin-default
...
==158291== 6 bytes in 1 blocks are definitely lost in loss record 18 of 824
==158291== at 0x4848C63: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==158291== by 0x4A91473: scm_realloc (in /usr/lib/x86_64-linux-gnu/libguile-3.0.so.1.5.0)
==158291== by 0x4AFF26B: scm_to_stringn (in /usr/lib/x86_64-linux-gnu/libguile-3.0.so.1.5.0)
==158291== by 0x4CB473D: _wrap_gnc_mktime(scm_unused_struct*) (swig-engine.cpp:38703)
...
2023-09-10 14:54:30 -07:00
Richard Cohen
9fe19d6cf9
Move potentially unused "SCM zone" variable into the #ifdef
2023-09-10 14:54:30 -07:00
John Ralls
6c9d0dca2c
Update github action package versions.
2023-09-10 14:48:51 -07:00
John Ralls
ab63595cc1
Merge James White's 'prices1' into stable.
2023-09-10 14:39:24 -07:00
Jeremy White
737e732e1c
Fixup qif-imp price unit tests.
...
The expected results changed with commit 80f7e60f49.
At the same time, improve readability of test results by
assigning a tag and ordering expected vs actual correctly.
2023-09-10 14:13:04 -07:00
Jeremy White
34946c7461
Remove exceptions and use patterns in parse-price-line.
...
Also use a more standard numberic parser instead of an ad-hoc
string parser.
Code written by Christopher Lam.
2023-09-10 14:13:04 -07:00
Jeremy White
6bf062c738
Add a qif file with !Type:Prices transactions.
...
Including a few deliberate errors.
2023-09-10 14:13:04 -07:00
Jeremy White
dd429aaa0c
Present warnings from the file load step.
...
The price import will now throw warnings if there are
invalid prices. The previous logic would 'auto-next' in this
case, only holding if the parse-file phase threw warnings.
This change insures that these warnings are seen.
2023-09-10 14:13:04 -07:00
Jeremy White
06b6d60f5b
Screen out price records with blank values.
...
Found a live Quicken record with an empty price.
2023-09-10 14:13:04 -07:00
Jeremy White
9cacaa72e8
Build the pruned list with cons, not append.
...
It is 10x faster against a large dataset.
Insight from Christopher Lam.
2023-09-10 14:13:04 -07:00
Jeremy White
af11a549e3
Implement support for !Type:Prices QIF records.
2023-09-10 14:12:55 -07:00
John Ralls
a8c20604ab
Merge Bob Fewel's 'bug798990' into stable.
2023-09-10 12:22:38 -07:00
John Ralls
fcd054a257
Merge Bob Fewell's 'bug798995' into stable.
2023-09-10 11:59:02 -07:00
John Ralls
4dec95e642
Merge John Ralls's 'more-stock-assistant' into stable
2023-09-10 10:44:26 -07:00
John Ralls
a09228a83e
[stock-txn-asst] Remove superflouos FieldMask::DISABLED tags
...
From the stock entry of stock split and reverse split templates. Since
there are other flags on the line the DISABLED flag isn't useful.
2023-09-10 10:40:54 -07:00
John Ralls
637522fed1
[stock-txn-asst] Don't report account missing if it's not required.
2023-09-10 10:40:54 -07:00
John Ralls
215a16a5e8
[stock-txn-asst] Add multicurrency note to introduction.
...
Warning the user that they're not supported.
2023-09-10 10:40:54 -07:00
John Ralls
e17345d4b6
[stock-txn-asst] Include a marker split in the stock account for divs.
2023-09-10 10:40:54 -07:00
John Ralls
94db524c60
[stokc-txn-asst] Add default currency to GncAccountSelector
...
Set the default currency to the transaction currency for creating
new accounts.
2023-09-10 10:40:12 -07:00
John Ralls
83ecabebce
[stock-txn-asst] Remove unused method.
2023-09-10 10:32:49 -07:00
John Ralls
c03b57b8fb
[stock-txn-asst] Doxygen documentation of classes.
...
And non-trivial functions.
2023-09-10 10:32:49 -07:00
John Ralls
fbf5ab8b47
[stock-txn-asst] Ensure correct memory management flow.
...
For the StockTransferController and GncGuiManager events.
2023-09-10 10:32:49 -07:00
John Ralls
4ff0ac383a
[stock-txn-asst] Change structs to classes.
...
With private data members, replacing direct member access with
accessor functions and refactoring functionality away from the
Model, View, and Controller container classes to the classes
that own the members.
This removes the need for RTTI inspection as regular virtual
function dispatch accounts for differences in Entry classes.
2023-09-10 10:32:49 -07:00