Commit Graph

17634 Commits

Author SHA1 Message Date
John Ralls
5547337e05 Enable Google Tests under CMake. 2016-07-01 15:01:11 -07:00
John Ralls
4be4404575 MinGW doesn't support stoi, use atoi instead. 2016-06-30 14:10:43 -07:00
John Ralls
9a8ed9323c Merge branch 'maint' 2016-06-28 16:22:53 -07:00
John Ralls
77988a72f5 Fix incomplete function name from 74fa556. 2016-06-28 15:27:01 -07:00
John Ralls
6fe4b8ff8e Reset release date to 28 June. 2016-06-27 21:40:24 -07:00
John Ralls
74fa556286 containsString wasn't introduced until OS X 10.10. 2016-06-27 21:38:35 -07:00
John Ralls
ddf84d0725 Release 2.6.13 2016-06-25 12:04:40 -07:00
John Ralls
9303d7dd0c Update translations from the translation project.
Updated: Dutch, Serbian
2016-06-24 15:47:42 -07:00
John Ralls
53b4526262 Remove automatch_store_transactions() from import-main-matcher.
There hasn't been a clist to iterate through since 2002, calling
gnc_import_TransInfo_refresh_destacc immediately after
gnc_import_TransInfo_set_destacc(...TRUE) is a no-op, and refresh_model_row
gets called immediately after run_account_picker_dialog_returns.

As a side benefit this might fix bug 757078.
2016-06-23 14:50:36 -07:00
John Ralls
72f630e8e3 Bug 760021 - File "Save As" to an existing file...overwrites without warning.
Save_may_clobber_data was looking at the wrong fullpath.
2016-06-23 09:41:51 -07:00
John Ralls
d3933f7c83 Bump CMake version to current. 2016-06-23 09:41:48 -07:00
John Ralls
8291c2991c Bug 761672 - Transfer made to placeholder account 2016-06-22 16:33:16 -07:00
John Ralls
9c71a6cc64 Bug 764248 - saved-reports-2.4-backup line endings unconventional 2016-06-22 16:25:55 -07:00
goodvibes2
2d68c81575 Update README to refer to wiki Submitting_Patches as per github
discussion re this file.
2016-06-22 22:00:36 +02:00
John Ralls
1b3f711287 Bug 748983 - Crash after opening money transfer dialog twice
Prevent re-entrance by checking that the static pointers, the second
freeing of which caused the crash. Set said pointers to NULL after
freeing them to make the dialog ready for the next invocation.
2016-06-22 12:47:26 -07:00
goodvibes2
5ed887715b Bug 637004 Optionally allow customer and vendor address info to display
Use an internal option to hold receivable/payable flag,
  remove trailing spaces.
2016-06-21 18:34:00 +02:00
goodvibes2
3e37be8144 Bug 637004 Optionally allow customer and vendor address info to display
in the Receivable Aging and Payable Aging reports so can be copied
  and pasted into a spreadsheet for use in mail merge.
2016-06-21 18:33:58 +02:00
John Ralls
71297be88e Fix Travis test failure in gnc_iso8601_to_timespec_gmt.
Can't reproduce failure on local systems, so this is a bit of a shot in the dark.
2016-06-20 16:11:13 -07:00
John Ralls
2375270eb7 Fix gnc_iso8601_to_timespec_gmt test failure.
Triggered by colon in the zone string.
2016-06-20 15:29:21 -07:00
John Ralls
a6da796c94 Bug 767824 - Some UTC timezones incorrectly recognized on Windows 7
Reset minutes-only timezones to +0000 (UTC) and adjust the time
according to the time zone error.
2016-06-20 13:06:26 -07:00
Alex Aycinena
3ded9f9b56 Book-Currency Feature step 5
Save a default gain/loss account in a book KVP and clean up some other book-currency items.

The changes made are:

	app-utils/gnc-ui-util.c & h - define new functions:
            gnc_book_get_book_currency_name,
            gnc_book_get_default_gain_loss_acct;
        reflect changed function names: qof_book_get_book_currency_name,
            gnc_valid_policy_name
	app-utils/options.scm - reflect changed function name: gnc-valid-policy-name
	app-utils/test/test-gnc-ui-util.c - include tests for gnc_book_get_default_gain_loss_acct;
        reflect changed function name: gnc_book_get_book_currency_name
	engine/policy-p.h - add policy name, description and hint to policy structure
	engine/policy.c & h - simplify gnc_get_valid_policy_list & define new functions:
            gnc_valid_policy, PolicyGetName, PolicyGetDescription,
            PolicyGetHint, xaccGetLIFOPolicy
	gnome-utils/dialog-options.c - conform to changes to gnc_get_valid_policy_list
        and use new function gnc_cost_policy_select_new
	gnome-utils/dialog-utils.c & h - define new function: gnc_cost_policy_select_new
	libqof/qof/qofbook.cpp & h - define new property: PROP_OPT_DEFAULT_GAINS_ACCOUNT_GUID
        and new function: qof_book_get_default_gain_loss_acct_guid
        changed function name: qof_book_get_book_currency_name
	libqof/qof/qofbookslots.h - define new option: OPTION_NAME_DEFAULT_GAINS_LOSS_ACCT_GUID
	libqof/qof/test/test-qofbook.c - reflect changed function names: qof_book_get_book_currency_name,
            gnc_valid_policy_name; add test for qof_book_get_default_gain_loss_acct_guid
2016-06-17 13:48:03 -07:00
John Ralls
2bbc1a193d Merge branch 'guid_header' 2016-06-09 15:29:45 -07:00
John Ralls
949ff816d6 Merge branch 'session-refactor' 2016-06-09 15:29:10 -07:00
John Ralls
ce190e3485 Some minor fixups to resolve clang warning and errors from session-refactor. 2016-06-09 15:28:39 -07:00
lmat
1c00937abe Clean up guid usage.
Now that there is a subclass of boost::uuids::uuid, that subclass can be
used for GncGUID implementation. This removes the need for the untidy
casts to/from bost::uuids::uuid, and simplifies the logic in many areas.
2016-06-09 15:07:54 -07:00
lmat
293a286693 Add C++ header for guid.cpp and tests. 2016-06-09 15:07:54 -07:00
lmat
74800e18f3 Remove unused, left over typedef 2016-06-09 15:04:54 -07:00
lmat
0ee7e61b48 Adding googletest cases for c++ qofsession struct 2016-06-09 14:51:21 -07:00
lmat
3063c87346 Replace C qofsession struct with c++ qofsession struct 2016-06-09 14:51:21 -07:00
lmat
557a5e2f2d Check the appropriate locations for gmock and gtest sources
Although we test libgtest_main, we don't test for libgmock_main. This
shouldn't be necessary since gmock was absorbed by gtest in upstream,
so I'm not planning on working hard to correct this problem robustly.
We'll just check for the source files in the other location where they
might be.
2016-06-09 14:51:21 -07:00
lmat
3390886051 Corrected "misleading" indentation
gcc 6.1.1 throws an error because with 8-space tabs, it looks like a
line is in an if statement when it isn't.
2016-06-09 14:51:21 -07:00
Alex Aycinena
9f3dc0c826 Merge maint. 2016-06-06 16:28:04 -07:00
Alex Aycinena
c0086e15e9 Partially revert commit B555f495 and solve problem more simply by instead resequencing prior statements. 2016-06-06 15:17:55 -07:00
Carsten Rinke
58b35eb7cd Bug763257 - add line charts to Income/Expense/Asset/Liability reports
Adapt net worth linecharts to work correctly with jqplot's date axis
2016-06-06 18:47:44 +02:00
Geert Janssens
340b5a3ece Restore proper formatting on the linechart highlighter 2016-06-06 18:47:42 +02:00
Geert Janssens
96ce4258a4 Bug763257 - add line charts to Income/Expense/Asset/Liability reports
Fix date formatting for UK and locale choices.
The fix works around what's most likely a bug in jqplot
that it poorly interprets UK formatted date strings. To avoid
the bug this patch will always pass ISO formatted date
strings to jqplot for line charts. This is only applied to
the liability chart for now and should be done for all other
line charts as well.
2016-06-06 18:47:12 +02:00
Carsten Rinke
927342f208 Bug763257 - add line charts to Income/Expense/Asset/Liability reports 2016-06-06 17:38:05 +02:00
Alex Aycinena
d80bd0387d Remove semi-colon accidently left in prior commit. 2016-06-05 13:24:06 -07:00
Alex Aycinena
079257a074 Merge maint. The gnc_gui_refresh_all statement in gnc_book_options_dialog_apply_cb causes the 'apply' and 'OK' buttons to be set to sensitive on the open Book Options dialog in some circumstances; this commit causes them to be reset to insensitive, as they should be. 2016-06-05 13:21:30 -07:00
Alex Aycinena
b555f49567 The gnc_gui_refresh_all statement in gnc_book_options_dialog_apply_cb causes the 'apply' and 'OK' buttons to be set to sensitive on the open Book Options dialog in some circumstances; this commit causes them to be reset to insensitive, as they should be. 2016-06-04 14:41:28 -07:00
John Ralls
0390322bf8 One line too far.
gnc-timezone.cpp includes src/platform.h, so not including src breaks it.
2016-06-02 14:02:28 -07:00
John Ralls
dfc0166d92 Add CPPFLAGS and LD_ADD to the date/time gtests.
Required because of using qoflog in gnc-timezone.cpp.
Also fix an extraneous std::move in gtest-gnc-datetime.cpp.
2016-06-02 12:44:38 -07:00
Geert Janssens
b92eff265a Avoid variable redefined errors for _FORTIFY_SOURCE
I ran into this on sabayon linux while trying the cmake build
2016-06-02 18:49:23 +02:00
Geert Janssens
92bb277f06 Fix leaking of ICU's c++ interface through libxml on some platforms
This may become unnecessary once the backends are rewritten in c++.
Tested on sabayon linux (which exibited the issue).
2016-06-02 18:26:26 +02:00
Geert Janssens
293b43dced Update README file regarding pull request policy 2016-05-31 13:09:44 +02:00
John Ralls
5d69ec7d87 Bug 766960 - gnucash-make-guids fails to run due to hardcoded paths. 2016-05-29 15:56:41 -07:00
John Ralls
1d3fc07177 Remove throw from noexcept TimeZoneProvider::get(). 2016-05-23 14:49:21 -07:00
John Ralls
8b04fab25c Fix misspellt BOOST_LDFLAGS. 2016-05-23 13:25:08 -07:00
John Ralls
915a2930f3 Remove close hook list; not used. 2016-05-23 13:12:24 -07:00
John Ralls
34e34334c7 Backends: astyle -xd -k1 -m0 -M60 -xL -xC79 -OHpUcZns4 --brackets=break
More extensive than usual, but these files had a lot of format issues.
2016-05-23 13:12:24 -07:00