Commit Graph

17005 Commits

Author SHA1 Message Date
John Ralls
ab41c01d86 Fix some compilers not considering plain enums as namespaces. 2015-12-26 12:18:27 -08:00
John Ralls
e0495fe269 Fully identify the boost header that needs to be fixed for C++11 compilation. 2015-12-26 11:54:28 -08:00
John Ralls
e5ad4aad2d Remove libboost_date_time dependency from libgnc-qof.
Changing the way the GncDateTimeImpl string constructor works allows
boost date_time to be used headers-only, which simplifies linkage.
2015-12-26 11:42:59 -08:00
John Ralls
e4d3e90070 Merge branch 'maint' 2015-12-21 10:26:59 -08:00
John Ralls
a1c7f6456c Release 2.6.10 2015-12-19 12:32:54 -08:00
John Ralls
cf6a5755e1 Clean log files in report-system/test.
Fixes a distcheck complaint about them being left behind.
2015-12-19 12:31:59 -08:00
John Ralls
571803ae6c Update the po files from the Translation Project. 2015-12-19 11:22:12 -08:00
Pedro Albuquerque
cc765b053b Add new Portugal-Portuguese Translation. 2015-12-19 09:57:43 -08:00
John Ralls
0a56146728 Fix test failure due to trying to parse nanoseconds, which we don't actually use. 2015-12-18 13:44:20 -08:00
Geert Janssens
9d07650077 Bug 746155 - Reports: html-acct-table prepend-row! & prepend-col! unknown variables
Fixed following the suggestions by Tony Kerns.
In addition the function names have been made more consistent -
they all end with a ! now as they change data.

Note these functions aren't used anywhere in the gnucash
code, but may affect custom reports by some users.
2015-12-18 18:12:03 +01:00
John Ralls
2f2d1d91a8 Bug 756335 - When importing, date selection causes exit crash
Second crash, when the field doesn't have a string.
2015-12-17 16:44:42 -08:00
John Ralls
8d904c1209 Correct detection of marker commodity splits.
The splits don't have an amount until after the formula is parsed, so
use the absence of both a credit and debit formula to indicate a marker.
2015-12-17 16:38:35 -08:00
John Ralls
697e746bc2 Remove the src/experimental directory for being hopelessly obsolete and probably useless. 2015-12-14 14:25:05 -08:00
John Ralls
54d087bfea Fix xml date failure do to nanoseconds conversion overwriting valid seconds.
Just ignore nanoseconds. They're never set in real life anyway.
2015-12-14 14:07:13 -08:00
John Ralls
5498f614fd Merge branch 'maint' 2015-12-14 13:13:29 -08:00
John Ralls
5f0cb0731f Use @SHELL@ instead of hardcode /bin/sh in test shell scripts.
This is a workaround for MacOS X 10.11's System Integrity Protection,
aka SIP, which among other things prevents system binaries from passing
linker environment variables to children. Anything in /bin or /usr/bin
qualifies as a system binary, and that includes /bin/sh and /bin/bash.
Not being able to pass linker paths breaks all of our guile tests which
need to tell Guile where to look for the libraries being tested.

To apply the workaround one needs to first have a shell outside of /bin
and /usr/bin. Simply copying /bin/sh to your home direcory works, as
does building a suitable shell somewhere. Just pass the path to that
shell in $CONFIG_SHELL to configure and all of the shell scripts and
libtool .la files will be created with it in the shebang line and the
linker environment variables will be passed in.

In order to build GnuCash in the first place you'll also need to edit
guild to use the alternate shell.
2015-12-14 13:11:12 -08:00
John Ralls
9f3d6fc83c Bug 759224 - illegal dates in stock transactions cause corrupt file.
Work around FreeBSD strptime bug.
2015-12-14 13:00:13 -08:00
Mechtilde
e08d7ac6c1 update de.po via gnucash.pot after building myself 2015-12-12 18:37:45 +01:00
Mechtilde
eb7a143c14 update de.po via gnucash.pot after building myself 2015-12-12 18:33:08 +01:00
Mechtilde
c8e77b4c7a some more German translation 2015-12-12 18:20:39 +01:00
Mechtilde
a765e8b47f add more German Translation 2015-12-12 10:33:11 +01:00
Mechtilde
34c1fc5213 add German Translation 2015-12-12 10:33:11 +01:00
Mechtilde
07c77f42d9 remove some fuzzy 2015-12-12 10:33:11 +01:00
Geert Janssens
e1b77aad87 Fix uninitialized warning in previous commit 2015-12-11 15:42:51 +01:00
Geert Janssens
f46ab3b98b Improve the revert action
- Move it's implementation to gnc-file with the rest of the file actions
- Ask user confirmation
- Don't ask to save before reverting
2015-12-11 12:06:55 +01:00
Geert Janssens
bfce5d840d Have a more generic mechanism to set Save action's sensitivity and use it for Revert action as well
So far the Save actions was more or less treated as an exception.
The new code enables/disables selected actions based on the dirty
state of the book.
2015-12-11 12:06:52 +01:00
Geert Janssens
38c0cc9451 Remove a couple of obsolete FIXME comments 2015-12-11 12:06:50 +01:00
Geert Janssens
cb0ae9ee8d Make dirty handling as currently defined by qof_alt_dirty_mode the only dirty handling mode 2015-12-11 12:06:49 +01:00
Mike Evans
35b5d94484 Bug 759294 - New the billing term are not saved during invoice editing.
Prevent editing the terms from the invoice view. This has to be edited
via the edit invoice button or menu Edit->Edit Invoice. The dropdown
in the invoice view has been replaced with an edit text box set to
non-editable in the glade file.
2015-12-11 10:11:41 +00:00
Geert Janssens
b2ced3d719 Bug 745101 - No warning when quitting with unsaved file
Improved fix: mark session dirty in qof_commit_edit_part2
instead of delegating this to the backends. This way
a session is also properly marked dirty (and hence the
save button enabled) when no backend is chosen yet
(that is, when in a new file that's never saved yet).

For the xml backend this means there's nothing to do anymore
at commit time, so the xml_commit_edit callback is removed.
2015-12-10 20:47:36 +01:00
Geert Janssens
a3cb28a2fe Disable a couple of debug tests in python
They would trigger a file save during start up on the temporary new session that's
created and destroyed after the following commit.
2015-12-10 20:23:21 +01:00
Geert Janssens
c559d28139 Revert "Bug 745101 - No warning when quitting with unsaved file"
This reverts commit 568bfa0282.
2015-12-10 19:47:00 +01:00
Geert Janssens
568bfa0282 Bug 745101 - No warning when quitting with unsaved file
Current workaround is to force-use a default backend on new sessions.
This works pretty well as the backend to use is retested when a file
is opened anyway, dropping the default backend. The default backend
should be able to handle the case where no real file/db is specified yet.
I think so far only the xml backend can do this, so I have chosen that one
as default.

For this to work I also had to prevent the python integration from querying
the current root account at startup. This query does create a root account
if it doesn't exist yet in the new session, triggering a dirty state. As
a result gnucash would ask to save the new session right before loading the
real file/db (the one that was open in the previous gnucash session).

This will probably still happen when python is initialized with the 'noisy'
flag (which is when --debug is set).
2015-12-10 18:44:51 +01:00
John Ralls
8870f0ece6 Merge branch 'cmake' 2015-12-10 09:38:05 -08:00
Rob Gowin
34c314aa48 Add ability to build GnuCash with CMake 2015-12-09 13:25:49 -06:00
John Ralls
243bfd1e72 Fix broken exchange rate edits when using trading accounts.
Reverts an erroneous change that was part of 6e14137.
2015-12-08 15:26:39 -08:00
Geert Janssens
d4af95d631 Fix travis config for master
- use more recent base system, which brings in a more recent gcc version
- install boost (currently 1.54)
- skip explicit installation of packages that were installed already
2015-12-08 19:59:32 +01:00
Geert Janssens
fc41cd5cbd Fix engine tests after maint merge 2015-12-07 21:55:14 +01:00
Geert Janssens
0e53cf89aa Merge branch 'maint'
Resolved conflicts:
	src/engine/test/Makefile.am
	src/gnome/dialog-sx-editor.c
2015-12-07 21:54:41 +01:00
Geert Janssens
2a0bb45f93 Slight logic cleanup in previous commit
GNC_RESPONSE_NEW case falls through to GTK_RESPONSE_OK so avoid doing thing twice
2015-12-07 20:54:44 +01:00
Robert Fewell
7788b71041 Bug 706021 Test match text for valid account path
Test the match text for a valid account path and use that or create
an alternative so there is only one call to the new account dialog.
2015-12-07 20:19:30 +01:00
Robert Fewell
1628840314 Bug 706021 Change Account Matcher New Account Button
This change allows the account matcher dialog to be closed
automatically after a new account is created.
2015-12-07 20:19:28 +01:00
Bob-IT
7e7b02af6d Correct Spelling Mistake
On line 217 ASSET is spelt as ASSSET
2015-12-06 21:50:08 +01:00
Geert Janssens
e410e05da7 Followup on bug 682800 to fix row balances in register reports
Due to the changes done for bug 682800 the row balances for the account report
no longer matched the row balances of the original register. This commit
should fix that for a consistent experience.
2015-12-04 18:50:49 +01:00
John Ralls
3a9825f801 Fix C++-style cast in a C file. Oops. 2015-12-03 13:29:00 -08:00
John Ralls
9d4bc7f05a Restore price source_name list compatibility with PriceSource enum. 2015-12-03 13:20:39 -08:00
John Ralls
90601ac464 Fix libdbi-0.9 crash on shutdown.
Must include the header before checking the version! Since this also
corrects the deprecation warnings, also reverts commit 29138bc.
2015-12-03 10:49:36 -08:00
John Ralls
9d46b89e14 Fix compilation error in src/backend/xml/test/test-file-stuff.cpp
The error was deep in stdc++lib headers, so something in the C includes
in test-file-stuff.cpp confuses the compiler.
2015-12-03 10:28:41 -08:00
John Ralls
ad17abedcc C++ work-arounds for mingw standard C headers applying __STRICT_ANSI__ to POSIX functions. 2015-12-03 09:52:53 -08:00
John Ralls
3b28d5ce5e Update CMakefile.txt for c->c++ change in backends. 2015-12-03 09:52:52 -08:00