Commit Graph

19528 Commits

Author SHA1 Message Date
Julian Wollrath
a43b115a45 Bug 791831 - Add python3 support
This switches swig to use python 3 specific features when generating the
bindings, switches the build over to python 3 and makes the neccesary
python 2 to 3 conversions in the bindings and tests.
2018-03-17 15:10:00 -07:00
John Ralls
85ec07ec30 Revert "Add COMPILE_SCHEMA to allow disabling gschema compilation"
This reverts commit 6b46299e8d, which was
pushed by mistake.
2018-03-17 14:56:37 -07:00
John Ralls
25d9431dc1 Merge Luciano Santos's 'compile-schema-patch' PR into unstable. 2018-03-17 14:18:11 -07:00
John Ralls
a4b043c3f0 Bug 794236 - Import a log file
The crash was caused by the timezone constructor encountering a
newline on the timezone. Prevent this by removing all whitespace
from the end of the input string.
2018-03-17 14:10:56 -07:00
luc14n0
6b46299e8d Add COMPILE_SCHEMA to allow disabling gschema compilation 2018-03-17 00:14:25 -03:00
John Ralls
8fe2cb6fa8 Fix date corruption in SQL load.
Four date elements were affected: GncEntry::date, GncEntry::date_entered,
GncInvoice::opened, and GncInvoice::posted. The problem arose during the
cleansing of Timespec from the reports; the setter functions for those
elements were converted to time64 but no provision was made to the SQL
backend to pass them time64 instead of Timespec*.

This commit adds a new column type, CT_TIME64, and changes the column
types for those elements to CT_TIME64.
2018-03-16 16:47:11 -07:00
John Ralls
e5561bd7ab Fix lost Bayesian matches in SQL backend.
The import-map-bayes uses a three-part key that uses the same delimiter
as a path and the SQL backend was throwing away everything except the
account guid.

Added more slot types including import-map-bayes ones to the test xml
file to help debug this and to catch it in the future.

Also don't pass std::string.c_str() to a std::vector<std::string>
constructor, just pass the string.
2018-03-16 13:59:04 -07:00
John Ralls
74d94650ed Avoid crash when committing a date outside of the valid range
Insert a NULL in its place.
2018-03-15 16:28:01 -07:00
fell
9b8901248c Merge branch 'maint' into unstable 2018-03-15 18:12:03 +01:00
fell
0c8c94eab0 Improve comments how to update FQ sources 2018-03-15 18:09:08 +01:00
fell
4b348b1fb7 Merge branch 'maint' into unstable
PR #313
2018-03-15 15:52:37 +01:00
Di Mang
232dcb5cbc Remove the emacs comments at the end of files 2018-03-15 12:54:31 +01:00
Di Mang
7439b27f96 Remove the emacs comments at the end of files 2018-03-14 23:04:00 +01:00
fell
273532c561 Merge branch 'maint' into unstable
PR #311
2018-03-14 08:53:01 +01:00
John Ralls
c381b2c965 Bug 787439 - Segmentation Fault in Transfer dialog after clearing...
Date field and pressing escape.

gtk_widget_destroy() ran the signals on the dialog controls which
tried to access the XferDialog data, but since gnc_xfer_dialog_close_cb()
had already run that memory had been freed and then used by the std::string
in GncDate::format; later handlers attempting to access the XferData had
garbage pointers to work with, causing a crash.

Running gtk_widget_destroy() first preserves the pointers long enough for
the dialog control callbacks to function without crashing.
2018-03-13 11:39:18 -07:00
Di Mang
2391db37c1 Update GC version and date. 2.7.6 2018-03-12 14:35:50 -07:00
John Ralls
4a8c2645b4 Release 2.7.6 2018-03-11 22:23:32 -07:00
John Ralls
8c9855a6bb Pass GTEST_ROOT and GMOCK_ROOT through to distcheck.
So that they don't have to be exported in the environment if they're needed.
2018-03-11 10:38:05 -07:00
Di Mang
9d2fdd41ae Add XML namespaces for all Account Hierarchy Templates.
ca, cs, da, de_AT, de_CH, el_GR, en_GB, en_IN, es_ES,
es_MX, fi_FI, fr_CA, fr_CH, fr_FR, hu_HU, it, ja, ko,
lt, lv, nb, nl, pl, pt_BR, pt_PT, sk, sv_AX, sv_FI,
sv_SE, tr_TR, zh_CN, zh_HK, zh_TW
2018-03-11 17:21:43 +01:00
John Ralls
3ccebde831 Update the Spanish translation from the Translation Project. 2018-03-10 15:56:00 -08:00
John Ralls
fc5dd9d2c8 Merge Bob Fewell's two bug fixes, PR302, into unstable. 2018-03-10 13:12:54 -08:00
John Ralls
21c5219937 Merge Bob Fewell's focus-fix PR304. 2018-03-10 12:31:04 -08:00
John Ralls
daca1312e7 Merge Bob Fewell's transient parent PR308 into unstable. 2018-03-10 12:12:48 -08:00
mpuels
fd0ba2c760 Fix typo 2018-03-10 12:07:02 -08:00
John Ralls
dc39110584 Put the crlf line-endings back on windows text files. 2018-03-10 11:24:44 -08:00
fell
fdfa6f528c Merge branch 'maint' into unstable 2018-03-10 11:06:59 +01:00
fell
d61cd79ae3 Minor fix in de.po 2018-03-10 10:23:56 +01:00
fell
df26146d2a Backport and review of commit c0fd3b3:
Remove all references to the now-defunct Yahoo! quote retrieval
2018-03-10 10:20:26 +01:00
John Ralls
867fdce4e4 Gcc-4.8 doesn't have std::codecvt.
Use boost::locale::conv::utf_to_utf instead.
2018-03-09 16:28:00 -08:00
John Ralls
10b7cbc257 Fix boost linking problem on Unbuntu 14. 2018-03-09 16:24:16 -08:00
John Ralls
c9f3c0760c Provide fallback value for test_core_dir in case it hasn't been built yet. 2018-03-09 13:48:36 -08:00
John Ralls
fbb172d096 Bug 793900 - 2.7.5: test failure: 105 - python-bindings.
unittest_support.py is in ${CMAKE_SOURCE_DIR} for a tarball build
and ${CMAKE_BINARY_DIR} for a vcs build. Look for it rather than
assuming it's in ${CMAKE_BINARY_DIR}.
2018-03-09 13:07:29 -08:00
John Ralls
c3180ab374 Operator << fix. 2018-03-09 13:07:29 -08:00
Geert Janssens
79dd7d69d0 Csv Importer - Prevent crash if number of saved columns is higher than actually detected ones.
I ran into this while trying to load a utf-16 encoded file
and loading a saved preset using utf-8. By applying the preset
the columns in the utf-16 file were no longer detected, but
the importer was still trying to read from a preset account column.
2018-03-09 00:34:56 +01:00
fell
6ee1c71d50 Merge branch 'maint' into unstable
PR #305, #:306
2018-03-08 23:04:18 +01:00
fell
6a1af63800 PR #306: Merge branch 'maint-transfer-01' of
https://github.com/DiMan/Gnucash into maint
2018-03-08 22:53:26 +01:00
Carsten Rinke
25883b17eb Bug764245 - multi-column reports include incorrect sub-reports 2018-03-08 18:55:20 +01:00
Geert Janssens
563d716161 Csv imp settings - internalize prefix handling
This information is not relevant outside of the settings code
The way it's implemented now each settings module defines its
own unique prefix and the generic code can just use it when
needed.
2018-03-08 18:55:20 +01:00
Geert Janssens
b577a7daf1 Csv import settings - undo rename of common methods
Use C++-style to call method with same name in parent class
2018-03-08 18:55:20 +01:00
Geert Janssens
751a3fec43 Csv importer - align file names
Done in a separate commit
2018-03-08 18:55:20 +01:00
Geert Janssens
e71f561236 Bug 793467 - GnuCash crashes when trying to open a binary file instead of a CSV
The cause was an uncaught exception from boost::tokenizer.
Fix and add test case.
2018-03-08 18:55:20 +01:00
Geert Janssens
6fe7d88548 Enable test to handle attempt to load non-existing file in csv importer 2018-03-08 18:55:20 +01:00
Geert Janssens
89c1534d51 Csv import - improve memory handling in the assistant class
Make it more RAII, in that whatever the class allocates, it should
also deallocate. This simplifies a couple of memory handling cases.
The only exception is the generic import matcher that for some reason
has chosen to deallocate itself. To be fixed when more importers are
converted to c++
2018-03-08 18:55:20 +01:00
Geert Janssens
1449d4ca68 Add some background info on memory management in CSV importers
As the assistant code combines multiple memory management models care should be taken
not to mix them up. The notes should give some insights in how to do this.

Also fix a few minor issues
- delete default copy and move constructor/assignment for the assistant gui class
- nullify a freed pointer
2018-03-08 18:55:20 +01:00
Robert Fewell
612cb5c69f Fix transient parent warnings for various import dialogs 2018-03-08 04:24:55 +00:00
Robert Fewell
59ae857142 Fix transient parent warnings for report dialogs 2018-03-08 04:24:55 +00:00
Robert Fewell
6cbf5dbba5 Fix transient parent warnings for various business dialogs 2018-03-08 04:24:55 +00:00
Robert Fewell
95329f2354 Fix transient parent warnings for various dialogs 2018-03-08 04:24:55 +00:00
Di Mang
6f587f8c16 clean up of account hierarchy templates for "de_DE" 2018-03-07 20:59:09 +01:00
Di Mang
edd89aafd0 clean up of account hierarchy templates for "C" 2018-03-07 20:54:18 +01:00