Commit Graph

16907 Commits

Author SHA1 Message Date
Mechtilde
373b1e8b4e some more German translations 2015-08-01 12:24:00 -07:00
Mechtilde
226b1b29f1 even more German translation 2015-08-01 12:24:00 -07:00
Mechtilde
2a775024a3 added more German translation 2015-08-01 12:24:00 -07:00
Mechtilde
1bf8326f54 add translation for reports 2015-08-01 12:24:00 -07:00
John Ralls
567f61fe3c Add make_testfile suggestion to test-templates README. 2015-07-30 09:56:37 -07:00
Mike Evans
9333344ee0 Fix apparent typo preventing build. 2015-07-30 13:01:02 +01:00
John Ralls
a4b0519303 Fix up and improve the Doxygen documentation in unittest-support.h. 2015-07-28 12:44:25 -07:00
John Ralls
2663dc96e2 Improve the test-templates README and update the templates to current practice. 2015-07-28 11:45:34 -07:00
Geert Janssens
124a2479ef Bug 752035 - Transaction Report Filter By not Always Working
Make sure the internal split function get_corr_account_split
behaves consistently on multi-split transactions. The transaction
report depends on this.

Add test case to catch potential regressions

Simplify filter test function in transaction report.
2015-07-28 17:13:06 +02:00
John Ralls
3ccaec6e38 Make backend sync errors survive to the session.
The backends were using qof_backend_get_error() to test for sync errors.
This function clears the error, so the tests resulted in the error being
cleared before the session could see it and so it thought that the sync
had succeeded.

Replace those uses of qof_backend_get_error() with a new function
qof_backend_check_error() that doesn't clear the error.
2015-07-27 16:04:38 -07:00
John Ralls
dd60ce6904 Fix Windows crash when the TZ has no Daylight time. 2015-07-27 22:53:33 +00:00
John Ralls
d2798b8c3f Bug 752879 - Finance::Quote TZ Date::Manip config variable is deprecated
Rewrite get_quote_time() to use the modern OO interface to Date::Manip.
This requires perl-5.12 or later, so require that. schemify_date() isn't
used anywhere, so remove that.
2015-07-26 13:11:45 -07:00
Christian Stimming
c7f84432d6 Bug #752822: Fix typos in translatable strings
Reported by anders.jonsson@norsjovallen.se
2015-07-25 23:39:49 +02:00
John Ralls
6d5002d91c Uninstall the python bindings. 2015-07-25 13:36:50 -07:00
John Ralls
e7aa53a75e Remove gmtime_r and localtime_r from lib/libc. They're no longer used. 2015-07-25 12:50:17 -07:00
John Ralls
290dd611d7 More fiddling with gtest linkage.
This time for when we don't have a system installation.
2015-07-25 12:23:35 -07:00
John Ralls
b78f102929 Fix timezone exceptions on Windows XP. 2015-07-25 11:23:20 -07:00
John Ralls
5cc99806d8 Windows: Get default timezone if there's no default key.
Windows XP doesn't provide a default key, just the TZI returned by
GetDefaultTimeZone(), so use that instead of throwing if there's no
default key in the registry. If GetDefaultTimeZone() files, throw: We
can't safely read the database without a timezone.
2015-07-25 11:23:19 -07:00
John Ralls
54c9e836d4 One more empty check when handling trailing '/' in a KVP key.
Also fix a unit test error.
2015-07-24 17:15:23 -07:00
John Ralls
b3bc68dc1b Don't make anonymous frames from leading or trailing '/' in keys. 2015-07-22 22:06:54 -07:00
Mike Alexander
0db17f1094 Bug 752686: Initialize temp GValues in xaccAccountGetReconcileLastInterval. 2015-07-22 17:51:37 -04:00
Mike Alexander
1fa94a7888 Some changes XCode wanted to make in the source control information it keeps 2015-07-22 17:51:30 -04:00
Mike Alexander
bf542713c4 Keep the XCode project up to date with source tree changes 2015-07-22 17:51:18 -04:00
John Ralls
27d36935b8 Fix generation of extra frames in book features. 2015-07-22 01:49:39 -07:00
John Ralls
7d1c8de3c7 Remove patch file inadvertently added to repo. 2015-07-22 01:47:17 -07:00
Bastien Scher
2dd38a9c60 Fix two French strings 2015-07-14 13:45:38 -07:00
John Ralls
cfb54e08b8 Bug 746998 - "Months Remaining" spinbox in Loan Assistant is non-obvious
Provide a tool tip explaining what it's for.
2015-07-12 15:08:45 -07:00
John Ralls
613bf2ec0e Fix up Win32 Build. 2015-07-11 22:05:28 -07:00
John Ralls
2137cb6d38 Bug 747795 - Attached file not found.
MSWin only. ShellExecuteW("open") doesn't decode http escapes on file:
IRIs.
2015-07-11 11:27:56 -07:00
John Ralls
211b923cd7 Bug 752204 - .gml2 files are modified during build, take 2.
Turns out that there are changes as well as compression, particularly
if the timezone is different from the one from the last commit of the
gml2 files. Since there's no real benefit to saving the files most of
the time, don't, but leave the save line in, commented out, to make it
easy to write new files if necessary.
2015-07-11 09:55:06 -07:00
John Ralls
a25fa861eb Bug 752203 - make check fails in "runTests.py":
No module named unittest_support because unittest_support.py is built
only when building from VCS and wasn't included in EXTRA_DIST.
2015-07-10 15:33:44 -07:00
John Ralls
d2fa23dd5f Bug 752204 - .gml2 files are modified during build
Turn off compression so that they aren't, except when scrub changes them
to a new format. In those cases the changes should be committed.
2015-07-10 12:47:43 -07:00
John Ralls
b741c8e1de Initialize GError to NULL or it doesn't work. 2015-07-10 12:47:43 -07:00
John Ralls
b9d6b8423f Guard against multiple typedefs of KvpFrame and KvpValue.
It's legal for C11, but not before. No need to gratuitously force an
upgrade.
2015-07-09 09:15:15 -07:00
John Ralls
7d940a5d91 Bug 749077 - wrongfully invalidating any account save location/path starting with ".gnucash" 2015-07-07 17:05:51 -07:00
John Ralls
d3e70217cd Move libgtest.a arg from Makefile to configure, add -pthread flag. 2015-07-07 16:46:13 -07:00
John Ralls
df05702ffb Fix extra comment close. 2015-07-07 16:40:02 -07:00
John Ralls
42b3bfbbfe Restore Date::Manip to quotes modules.
Gnc-fq-helper needs it to parse date and time strings from Finance::Quote.
The comment about using the iso-date field is removed because F::Q no
longer provides it.
2015-07-07 13:02:18 -07:00
John Ralls
6447be9ba9 Document that KvpFrame and KvpValue take ownership of pointers passed to them. 2015-07-07 12:04:06 -07:00
John Ralls
ca62782d93 Fix up double-frees or frees of unallocated objects in KVP.
Revealed by ensuring that KvpFrame and KvpValue deep-destroy their contents.
2015-07-07 12:03:37 -07:00
John Ralls
919fe76c95 Clear the option slots the right way.
Deleting the frame leaves the value with an invalid pointer.
2015-07-06 13:55:13 -07:00
John Ralls
5921c63a01 Update the copyright date for Help|About to 2015.
Only 6 months late!
2015-07-05 16:33:52 -07:00
John Ralls
133f03d45a Fix crash on attempting to load features from KVP if there aren't any. 2015-07-05 16:14:33 -07:00
John Ralls
50787fc333 Fix broken python test, adding new C unit test to cover the break. 2015-07-05 15:55:49 -07:00
John Ralls
bdf5cb9bee Update CMakeLists.txt for some cpp files that got missed when they were changed or added. 2015-07-05 14:13:02 -07:00
John Ralls
56c3316379 Merge branch 'kvp-cleanup'
Remove the KVP C API and consolidate use in a few files in libqof. For
almost all future use KVP should be accessed via
qof_instance_set/get_kvp() or qof_book_get/set_option(). These
interfaces will ensure that changes to KVP are immediately committed
unless they're called from inside a begin_edit/commit block to
consolidate a database transaction.

Some exceptional corner cases where direct access to KvpFrames are
abstracted into new objects in libqof. The KVP "bag" interface of
kvp-utils is removed and its single in Split.c made more direct with
qof_instance_kvp_foo_guid functions.

Account, Transaction, and Split use qof_instance_copy_kvp and
qof_instance_swap_kvp as part of their rollback facilities.

Resolves bugs 87652, 120250, 736139, and 736687.
2015-07-04 17:00:53 -07:00
John Ralls
cc515150d9 Bug 120250 - KVP XML loader ignores '0' timestamps? 2015-07-04 17:00:32 -07:00
John Ralls
20a5202899 Bug 87652 - KVP modification does not change 'dirty' flag. 2015-07-04 17:00:32 -07:00
John Ralls
4623cff38d Document new KVP API in Doxygen, including relevant bits from src/docs/design. 2015-07-04 14:09:14 -07:00
John Ralls
e81b816658 Update doxygen config to use C++ files and drop obsolete commands.
Also turn on autobrief, STL support, and reduce the tab size to 4.
2015-07-03 17:15:24 -07:00