Commit Graph

19549 Commits

Author SHA1 Message Date
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
Robert Fewell
3fce50a29e Fix Segmentation fault when going to File->New
When selecting the File->New with existing register pages open a crash
can happen as the register pages get closed forcing a page-changed
signal to queue the page focus function when there is no page. Add a
call to remove the page focus function in the ..destroy_widget function.

Also with the addition of g_idle_remove before the add when page-changed
is emitted the page focus function only gets run once.
2018-03-07 16:47:08 +00:00
fell
f8fd9dd272 Merge branch 'maint' into unstable
PR #303
2018-03-07 05:37:42 +01:00
Di Mang
e766c71acc Remove the unnecessary comments:
<!-- Local variables: -->
<!-- mode: xml        -->
<!-- End:             -->


This comments are to help emacs recognize that the files are xml
since they don't have 'xml' as an extension
2018-03-06 20:28:08 +01:00
John Ralls
2acb6da2b8 Bug 794083 - gnucash-2.7.5: cmake+make build installs Makefile 2018-03-06 10:13:06 -08:00
John Ralls
5520fae838 Bug 793941 - 2.7.4: test failure on i686: 59 - test-gnc-timezone
Don't test before 1916, that's not a common GnuCash use-case.
2018-03-06 09:56:13 -08:00
John Ralls
36d729652b Speed up GUID equality comparison. 2018-03-06 09:48:38 -08:00
Robert Fewell
25585de077 Bug 794031, enable placeholder toggle and provide callback
The text for this account tree view specifies "If you would like an
account to be a placeholder account, click the checkbox for that
account." but they were not enabled and no call back was defined so
enabled the toggle button and provide callback.
2018-03-06 14:42:43 +00:00
Robert Fewell
25fc4d9bbd Bug 793699 - start_spath could be used uninitialised
Make sure the start_spath is declared within the while loop and also
freed.
2018-03-06 14:40:32 +00:00
fell
d95eb0f7f3 Merge branch 'maint' into unstable
PR #300
2018-03-06 05:58:07 +01:00
Di Mang
6457b2ebe5 Adjustment of Account Hierarchy Templates.
(mentioned in PR #293 on GitHub)

1) Added namespace section (header)
2) Added missing placeholder
2018-03-05 23:04:04 +01:00
Geert Janssens
30fb1dc479 Merge branch 'unstable-bugfix' of https://github.com/christopherlam/gnucash into unstable 2018-03-05 16:57:00 +01:00
Geert Janssens
ddba926e49 Merge branch 'unstable-transfer-02' of https://github.com/DiMan/gnucash into unstable 2018-03-05 16:56:07 +01:00
Geert Janssens
e2d69b174e Merge branch 'master' of https://github.com/nielsegberts/gnucash into unstable 2018-03-05 16:54:24 +01:00
Geert Janssens
8a33864168 Merge branch 'cpack' of https://github.com/TheBiggerGuy/gnucash into unstable 2018-03-05 16:52:55 +01:00
Guy Taylor
41d79f4ef3 Fix CPack package version number
Currently running "ninja-build package" produces a file with and incorrect
version number. This patch passes the CMake version variables into CPack to get
the correct filename.

Old "gnucash-0.1.1-Linux.tar.gz" new "gnucash-2.7.5-Linux.tar.gz"
2018-03-05 15:38:41 +00:00
Christopher Lam
21ea6d56bf Modernise chart colours
This commit changes chart colours from the dated CSS defaults to
modern colours as suggested by http://clrs.cc/
2018-03-05 20:24:12 +08:00
Christopher Lam
22517f98ce taxtxf: schemify 2018-03-05 20:24:12 +08:00
Christopher Lam
41322ec3d8 <br> to <br/> and ~s to ~a 2018-03-05 20:24:12 +08:00
Christopher Lam
551e98435d remove begindate in qofquery
This was producing a date corresponding to 01-01-1970. make-zdate was
being used in aging.scm as a hack to search all splits prior to
end-date. fix the date query logic to set begin-date match to #f.
2018-03-05 11:12:13 +08:00
fell
580ce72da7 Merge branch 'maint' into unstable 2018-03-05 03:40:48 +01:00
Di Mang
fc5bdfa10b Revision and expansion of accounts for the Russian language.
In addition, replacing of commodity: USD => RUB.

Cherrypicked from unstable and adjusted to main
2018-03-05 03:05:43 +01:00
Di Mang
a72e0bdd5e Add spacing between border and text in dialog "New Accounts Hierarchy Setup".
There is no spacing between the text and the frame in the dialog
"New File" > "New Accounts Hierarchy Setup". In some cases - when
changing the window size - the text appears next to the frame.
It does not look very clean. As a solution, I have defined here a small spacing: 5px.
2018-03-04 14:09:24 +01:00
Christopher Lam
51e2511223 Bug 765846 - Expense Over Time for subaccounts: An error occurred while running the report
fix crash if acc-depth too low
2018-03-04 19:21:52 +08:00
Christian Stimming
18f0d053b0 Fix auto-selection of splits in reconcile
Really use all splits of any given day. Up to now usually the splits
of the given date were not or not all included, as the time comparison
didn't correctly ignore any given time-of-day of the splits. Instead,
all possible time-of-days should be included.
2018-03-04 00:19:38 +01:00
Di Mang
335082480d Revision and expansion of accounts for the Russian language.
In addition, replacing of commodity: USD => RUB.
2018-03-03 22:08:39 +01:00
Christopher Lam
2d983c6703 bugfix gnc_ui_new_account_window
parent -> parent_acct
fixes bug introduced in c76efd656e
2018-03-03 00:26:49 +08:00
Geert Janssens
e4884cdf09 Merge branch 'maint' into unstable
Ignoring changes in obsolete test-flat-bayes.c (was removed before on unstable)
2018-03-01 19:59:34 +01:00
Geert Janssens
cf73c93bdf Bug 792008 - gnucash 2.6.19 fails to build
Replace g_assert_true with g_assert for now
2018-03-01 19:58:07 +01:00
Geert Janssens
13e6880b34 Bug 745941 - Review of po Headers / make pot 2018-03-01 18:31:49 +01:00