Commit Graph

20459 Commits

Author SHA1 Message Date
John Ralls
7a4b06c442 Bug 796878 - test-qofsession fails on x86_32. 2018-10-04 15:44:32 -07:00
John Ralls
a8c884016e Make the case of the Mac help directories the same as in the Bundle.
Using the preferred camel-case rendering.
2018-10-04 14:06:13 -07:00
John Ralls
3eab36e832 Reindent Mac version of gnc_gnome_help. 2018-10-04 14:06:12 -07:00
Geert Janssens
e068366277 Bug 796772 - Receivable Ageing Report invalid URL for Totals column
Use some pointer arithmetic to split the owner guid into a separate
string before handing it over to boost::uuid for interpretation
2018-10-01 13:18:25 +02:00
Di Mang
893383ce9b removing double semicolons at the end of lines 2018-09-30 19:10:50 +02:00
John Ralls
65c8357f53 Release 3.3 2018-09-29 16:05:55 -07:00
John Ralls
b7be8d59b7 Remove engine-deprecated.i from CMakeLists.txt.
It wasn't created in the timespec functions deprecation commit.
2018-09-29 13:01:29 -07:00
John Ralls
8d90966251 Update Farsi and Ukrainian translations from the Translation Project.
Includes re-applying http://bugzilla.gnome.org -> https://bugs.gnucash.org.
2018-09-29 12:44:09 -07:00
Geert Janssens
c96fb6209c Bug 795821 - GnuCash could not obtain the lock for file://C:\Users\username\Documents\GnuCash\2.6.21\xxxx\xxxx.gnucash 2018-09-28 22:15:56 +02:00
Geert Janssens
406953c2ae Bug 796820 - References to 'Gnome Bugzilla' should be changed to 'GnuCash Bugzilla'
Additionally use https everywhere to refer to bugs.gnucash.org or bugzilla.gnome.org
2018-09-28 15:00:43 +02:00
John Ralls
26714d2e17 Bug 792446 - Mixed languages in error dialog. 2018-09-27 18:05:42 -07:00
Geert Janssens
2094282790 Merge branch 'block-pref' of https://github.com/Bob-IT/gnucash into maint 2018-09-27 21:57:39 +02:00
Robert Fewell
b6f2b111bc Block registered prefs when preference dialogue loaded
When the preference dialogue is loaded and options are set, the ones
with registered callbacks fire causing parts of Gnucash to be updated.
This was observed with gnc_split_register_load being executed 5 times
for each open register when the preference dialogue was loaded.

To overcome this, a couple of functions have been created to block and
unblock all registered prefs and used while the preference dialogue is
loaded.
2018-09-27 15:57:34 +01:00
Geert Janssens
02e3a747e4 Merge branch 'patch-1' of https://github.com/myaser/gnucash into maint 2018-09-26 09:57:12 +02:00
Mahmoud Yaser
3e014f189f
Update change_tax_code.py 2018-09-26 08:21:17 +02:00
Geert Janssens
ed436f4151 Bug 796819 - bad icon with Spanish localization
Drop translations of the 'gnucash-icon' string from our po files
and add a note for translators to not translate this string or
use the litteral 'gnucash-icon' as translation
2018-09-24 23:05:59 +02:00
Geert Janssens
9261cabfbb Bug 787439 - Segmentation Fault in Transfer dialog after clearing Date field and pressing escape
Disconnect date edit's focus-out callback before destroying the transfer dialog widget.
This should prevent the callback being triggered while the widget's internal state
is being destroyed.
2018-09-24 19:34:18 +02:00
Geert Janssens
c4b40dbf46 Bug 796816 - Notes field in Duplicate Invoice dialogue is 'read-only' 2018-09-24 18:35:10 +02:00
Geert Janssens
9c9068cf5a Use proper GtkAction function instead of generic g_object call 2018-09-24 18:24:40 +02:00
Mahmoud Yaser
f726238865
Update change_tax_code.py 2018-09-24 17:21:16 +02:00
Geert Janssens
f89a40e3eb Fix gtk accelerator mixups by explicitly disabling actions that are not relevant
The issue I found was with File->Print and its variants for various page types.
They all use the same '<primary>p' as global accelerator. It was possible to
have gnucash invoke the 'Print Report...' action instead of the 'Print Invoice...'
action when hitting <primary>p on an invoice page. If no report page was
open at this point, gnucash would crash. If a report was open, gnucash
would invoke the print action on that report instead of opening an
invoice report for the invoice. This looks like a bug internally in
the gtkaction handling or our improper use of it. However I could
work around it by disabling action groups before unmerging them.
2018-09-24 17:15:11 +02:00
Mahmoud Yaser
3b416f07be
Update change_tax_code.py 2018-09-24 11:12:16 +02:00
John Ralls
26a179872d Don't create 2 new books for every new session.
And don't ask to save a not-dirty or empty book, fixing
Bug 794870 - If no book is opened, gnucash still asks if the user wants
to save changes when opening a file
2018-09-23 16:42:11 -07:00
Geert Janssens
1c5eb86d90 Simplify GNCQueryView's data model
It was managing a number of redudant parameters which were leaking
memory all over the place. The information that was tracked could
easily be extracted from the underlying GtkTreeView, GtkTreeModel
or GtkTreeSelection when needed.
2018-09-23 22:19:56 +02:00
Geert Janssens
9bec660fba Revert "Fix memory leaks in GncQueryView"
This reverts commit 5609b704c5.

While it fixed the memory leaks it also caused gnucash to crash
when trying to search for invoices. Will be redone differently
in a follow-up commit.
2018-09-23 22:19:14 +02:00
Geert Janssens
164f484718 Open customer/vendor/employee report when double-clicking an the respective owner the cust/vend/empl overview page
Before this action would open the cust/vend/empl edit window. However opening the report is a much
more common use case so it makes sense to make that one default.
2018-09-23 17:35:34 +02:00
Geert Janssens
3991ccb9c2 Cache current owner balances
These are queried continuously by the owner tree view (on Customer/Vendor/Employee
Overview pages) and recalculating them is an expensive operation.
The cache will be invalidated each time a lot reated to the owner
changes (modify or delete). The net effect is a huge responsiveness
improvement of said overviews in case of a large book.
2018-09-23 16:00:41 +02:00
Christoph Holtermann
64a28b5263 xrange deprecated in python3, change to range
thanks to Sumit Bhardwaj for the hint
2018-09-22 18:12:11 +02:00
John Ralls
40bcd1e377 Bump the max_denom_mult to match the new GNC_COMMODITY_MAX_FRACTION. 2018-09-21 14:33:02 -07:00
John Ralls
4fe12f5422 Some more magic number replacements. 2018-09-21 14:32:03 -07:00
John Ralls
87533fe4bc Catch std::underflow_error as well as std::overflow_error.
Any operation that can overflow will throw an underflow if it's a
negative number. The C interface needs to catch both to prevent
unhandled exception crashes,
2018-09-21 14:28:49 -07:00
John Ralls
6d2ef90313 Fix a magic number. 2018-09-21 13:00:34 -07:00
John Ralls
dd10ac8bc7 Don't need NANOS_PER_SECOND anymore. 2018-09-21 13:00:19 -07:00
John Ralls
80a4591736 Bug 786708 - GnuCash won't load currency fractions larger than 1000000.
Also create larger fractions for the account dialog.
2018-09-21 12:59:50 -07:00
Christoph Holtermann
97916c6682 whitespace fixes 2018-09-21 09:28:41 +02:00
Christoph Holtermann
34fa18f04e additional fixes for python3 2018-09-21 09:27:17 +02:00
John Ralls
70bc472ffe Revert "[net-charts] deoptimize accounts-list"
This reverts commit 941acee04e. It did
indeed deoptimize creating a list of split-balances for time reports.
2018-09-20 17:25:44 -07:00
John Ralls
39575f2272 Bug 784420 - "Save changes on closing" window waits 2^32 seconds when...
"Time to wait for answer" is set 0.

Set minimum value of 1 for the save_on_close_adj.
Disable the associated spinner if the timeout is disabled.
Protect secs_to_save from rolling over if it's already 0.
2018-09-20 17:19:01 -07:00
John Ralls
77fb01db82 Merge branch Christoph Holterman's 'python-query-test' into maint 2018-09-20 10:56:01 -07:00
Christoph Holtermann
54cb3358ce add basic test for python query
add test for creating query object and setting search_for
related to Bug 796137 and fix in commit 1a7c5b9a32
2018-09-20 18:54:49 +02:00
John Ralls
2d565215cd Fix localedir relocation.
Since LOCALEDIR is now always absolute we need to see if there's a
prefix and if LOCALEDIR is a subdir of PREFIX instead.
2018-09-18 16:08:48 -07:00
John Ralls
59a6ebc33a Fix TravisCI build failure. 2018-09-18 15:07:47 -07:00
John Ralls
0cf42a75b3 Bug 796858 - TypeError: in method 'qof_query_int32_predicate',...
argument 2 of type 'gint32' on gnucash.gnucash_core.QueryInt32Predicate

Add gint32 to typemap.
Also replace a couple of PyString_ calls leftover from Py2.
2018-09-18 10:23:11 -07:00
Frank H. Ellenberger
10811b8a43 Redo of commit 586cd70 2018-09-18 12:31:44 +02:00
John Ralls
a20a803c8e Merge Chris Lam's 'maint-optimize-interval-charts' into maint. 2018-09-17 17:46:28 -07:00
John Ralls
766dc9b2d5 CMake: Test for & set WORDS_BIGENDIAN, set _GNU_SOURCE.
Got lost in transition from autotools.
2018-09-17 17:42:53 -07:00
Frank H. Ellenberger
586cd70432 Update Overview of README
based on https://lists.gnucash.org/pipermail/gnucash-devel/2018-September/042748.html

Additional changed "http" to "https", where available.
2018-09-17 22:18:00 +02:00
Christopher Lam
395b42d620 [average-balance] add styling to data table 2018-09-17 07:28:09 +08:00
Christopher Lam
ce58549506 [invoice] mark strings in options as translatable 2018-09-17 07:28:09 +08:00
Christopher Lam
ad361d1e69 [invoice] Add customer/vendor ID in client section
This aims, but does not completely fixes bug 430259 or 742086 which
would require data model changes. It upgrades invoice.scm to add the
customer/vendor/employee internal ID. Job invoices will display the
job owner's ID.
2018-09-17 07:28:09 +08:00