Commit Graph

15529 Commits

Author SHA1 Message Date
John Ralls
c978ab68e4 QifImport: Fix crash from attempting to import an empty file.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23526 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-10 03:34:36 +00:00
John Ralls
d62d8557d0 Qif Import Assistant: Don't disable the whole dialog, just the Forward button
The Qif import assistant would at many steps block entirely, requiring the
user to either do whatever is necessary to move forward or to quit and
restart Gnucash. That's a bit rude, so set pages as GTK_ASSISTANT_TYPE_CONTENT
instead of GTK_ASSISTANT_TYPE_PROGRESS.

Fix the file selection page so that the forward button isn't enabled until
a file is selected.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23525 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-10 03:34:27 +00:00
John Ralls
4a82768e18 Bug 632588 - Scrub doesn't fix missing currency
So assign the currency from the first split (that belongs to an account.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23522 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-09 02:02:41 +00:00
John Ralls
16eaec05b2 Fix missing identifier from r23520
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23521 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-09 02:02:31 +00:00
Geert Janssens
8d59144c08 Fix (harmless) report warnings as reported in bug 639371
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23520 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-08 18:18:46 +00:00
Geert Janssens
6b9dbd9faa Long term fix for wrong version number part of bug 639371
Read compile time version number to display in the report

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23519 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-08 18:02:25 +00:00
Geert Janssens
51c2cd7161 Remove obsolete conditional that's never triggered anymore
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23518 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-08 18:02:09 +00:00
Cristian Marchi
1e1400e54b Updated French translation and glossary, thanks to Sébastien Villemot.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23517 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-08 17:15:23 +00:00
Geert Janssens
2308e9b3b5 Fix report background image loading on Windows
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23513 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-08 13:48:31 +00:00
Frank H. Ellenberger
bdb1188a86 Bug 711317 - Indian Rupee Symbol appears as "?" marks
update outdated INR locale symbol
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23510 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-07 20:49:01 +00:00
John Ralls
b574198961 Fix missing prototype warning from r23494.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23509 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-07 18:02:29 +00:00
Geert Janssens
a0ca453e6c Bug 627575 - Stylesheet names with non-alphanumeric characters and saved-reports -- addendum
Work around a bug in guile 1.8. It escapes spaces in symbols
when printed to a string, but can't convert that string
back properly in a symbol

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23501 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-07 15:57:46 +00:00
Geert Janssens
f14bd73ba9 Bug 627575 - Stylesheet names with non-alphanumeric characters and saved-reports
g_key_file_[gs]et_string parses the string to escape newlines and comments
This erroneously does some escaping in the #{symbol name}# guile extended format
for symbols. Since we already strip newlines and comments ourselves,
we can save and store the string without any additoinal parsing
using g_key_file_[gs]et_value.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23499 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-07 10:18:21 +00:00
Mike Alexander
5c3f0d3c81 Don't add a \n to the beginning of the split memo, account, or amount lists.
Pango seems to ignore it, but it really shouldn't be there.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23498 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-07 07:33:39 +00:00
Mike Alexander
0d3d2c33b8 Fix bug 653594 related to check printing.
This bug has two parts.  The original bug was that the wrong split is sometimes
used to print the check.  In the comments a second problem was mentioned:
sometimes the wrong split is omitted from the split list in formats that print
all the splits.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23497 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-07 07:33:33 +00:00
Mike Alexander
80b51ad5dd Protect against null account pointers in a couple of place to avoid asserts.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23496 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-07 07:33:24 +00:00
Mike Alexander
bf1c6d3278 Protect gnc_mktime against bad dates.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23495 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-07 07:33:14 +00:00
John Ralls
e4fc44dd1c Test for overflow limits in gnc_numeric_add.
For analysis of Bug 665707.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23494 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-05 21:54:28 +00:00
John Ralls
de3a6e3df2 Handle RAND_MAX < 2^32 in get_random_gint64()
MacOSX, for example, sets RAND_MAX at 65535, which rather limits the
size of random gint64s on that platform.

Fixing this revealed some odd behavior in creating random interest rates,
so created a specific function for that with a somewhat more reasonable
approach.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23493 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-05 21:54:18 +00:00
Geert Janssens
71654e984c Multi-currency "Post invoice" improvements
- only pop up the exhange rate notification message when an exchange
  rate is effectively asked. Still only pop it up once per post operation.
- ask for conversion rates again if an invoice is reposted on a different date
- only keep one price per foreign currency in the invoice's price list

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23491 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-05 10:53:32 +00:00
Geert Janssens
361a803de5 Bug 630578 - current date instead of posting date in exchange rate, when posting a bill
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23490 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-05 09:41:30 +00:00
Geert Janssens
ae23373ed6 Bug 715123 - Post invoice problem, cannot unpost
Look for missing exchange rates in tax table entries
as well as in invoice entries

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23485 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-04 16:56:55 +00:00
Christian Stimming
f5e443c22e Fix cutecash build: Calling the iso-currencies-to-c script can directly use the unchanged .in script because we call the GUILE_EXECUTABLE directly from cmake.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23484 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-04 07:30:54 +00:00
Frank H. Ellenberger
ba0400b718 Update german glossary
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23483 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-04 04:26:22 +00:00
Mike Alexander
1787ffb01c Fix bug 719521. The two radio buttons were both there, but one on top of the other.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23482 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-04 00:58:51 +00:00
Christian Stimming
24fbdace04 Fix ugly typo in string.
I know, this is a minor break of string freeze, but it's still a very
hidden string, so I fix the typo better now than later.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23480 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-03 11:33:17 +00:00
Christian Stimming
b68147d904 Update German translation. Still 690 to go.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23479 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-03 11:33:02 +00:00
John Ralls
839f7f54a9 Bug 719726 - Click on File -> Open seg-faults
in gnc_uri_get_components in gnucash gnc-uri-utils.c:137

g_strsplit doesn't return a 2-element array if presented with an
empty string.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23478 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-02 23:46:49 +00:00
John Ralls
219c780641 Bug 708526 - GnuCash Crashes when opening About page
Downgrade the g_error in gnc_filepath_locate_file() to a g_warning
and ensure that all users will properly handle a NULL return value.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23477 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-02 23:46:40 +00:00
John Ralls
c914f15eac Remove src/gnome-utils/gnc-warnings.c from POTFILES.in
and add it to POTFILES.skip so intltool will stop adding it back.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23476 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-02 23:46:31 +00:00
John Ralls
d745ea99ec Protect older GCCs from -Wno-invalid-source-encoding
Needed for clang, added in r23434

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23475 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-02 23:46:22 +00:00
Geert Janssens
7492f14606 Fix python test
It no longer requires access to the installed gsettings schemas.
The default value for XDG data dirs didn't work anyway because
it used a ; instead of a : as separator (as it should for the
environment file).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23474 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-02 16:05:44 +00:00
Geert Janssens
31c7396e15 GSettings: only load backend when installed
The preferences backend can't work from the source environment because
it's schemas won't be compiled. This situation is only relevant for testing,
which is done from the source (or build) tree.
Note that a few preferences are needed by the xml backend. If no preferences
backend is loaded, some sane defaults will be used instead. Again this should
only matter for testing, in which case the real preferences are not relevant
anyway.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23473 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-02 16:05:32 +00:00
Mike Alexander
b50ca70f50 Update progress bar while writing price DB as well as while reading it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23472 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-01 04:53:05 +00:00
John Ralls
6bc1ad6da0 Make that Release 2.5.9
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23470 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-01 03:24:15 +00:00
John Ralls
c6314345a9 Release 2.5.90
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23467 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-01 01:30:15 +00:00
John Ralls
7fa5a33932 Ensure that all KVP changes are properly marked dirty and committed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23466 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-01 01:30:03 +00:00
Mike Evans
cb598dfd77 Bug 710871 - Python site-packages not found when not installed to default location using --prefix
modified:   ../src/bin/Makefile.am

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23465 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-30 16:03:44 +00:00
John Ralls
da08312047 Fix windows build for r23452
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23462 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-30 06:05:44 +00:00
Geert Janssens
7581076364 Improve cond-expand/eval-when usage based on feedback from the guile developers
Basically two things:
- whenever eval-when is used, the expand keyword should be added (not yet documented)
- eval-when is not needed for use-modules, because use-modules is a macro that performs the eval-when by itself

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23460 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-29 19:18:08 +00:00
Geert Janssens
da57bb7f0b Bug 707311 - Tax Invoice fails to open when using guile 2 - addendum
Make it also work with guile 2 in non-compiled mode

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23459 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-29 19:17:40 +00:00
Mike Evans
9ffc56da03 Bug 715184 - Bill or Invoice; a new Bill gives a new Invoice
Fixes the labelling in the bill or voucher windows and the new dialog.
It doesn't fix the bug, but is related to it.

Note to translators:  Introduces four new strings
"Voucher Information", "Bill Information", "Bill", "Voucher",

modified:   src/business/business-gnome/dialog-invoice.c
modified:   src/business/business-gnome/gnc-plugin-page-invoice.c

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23458 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-29 13:23:07 +00:00
Mike Alexander
b3efabed2a Try to make the python bindings tests work with an out of source tree build.
This is almost ok, but it uses the schemas from the install tree.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23457 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-29 06:24:20 +00:00
Mike Alexander
27424d0e1c Make the test-dynload test work in the X11 version on MacOSX.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23456 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-29 06:24:13 +00:00
Christian Stimming
f50cceace8 Remove annoying extra question before overwriting transfer fields by template.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23455 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-28 11:35:57 +00:00
Christian Stimming
9b38ea4f24 Update German translation. Still 790 to go, sigh.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23454 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-28 11:35:45 +00:00
Christian Stimming
3a7499d7d8 Win32: Update aqbanking versions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23453 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-28 09:45:34 +00:00
John Ralls
ac8c2e7775 Bug 704506 - Connection loss to mysql after resume from hibernation
Add a 2^n ms backoff for connection retries so the server has time
to restart after hibernation.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23452 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-28 03:46:30 +00:00
John Ralls
a574917d8a test_gnc_setlocale: Print diagnostic message, replacing comment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23451 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-28 00:39:13 +00:00
John Ralls
0317eedf39 Stop leaking and re-inserting Split slots
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23450 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-28 00:38:57 +00:00