Commit Graph

20632 Commits

Author SHA1 Message Date
Frank H. Ellenberger
07821be68d de.po: fix 1 MsgStr to test boost::locale::tramslate
preparation for Bug 796988
2018-12-21 06:04:05 +01:00
John Ralls
50d3b6b56d Fix double 'static char*' paste error. 2018-12-20 06:49:56 -08:00
John Ralls
127c658f05 un_escape: More terse, more correct.
Doesn't run past the end of the input string even if the last
character is a quote.
2018-12-19 22:35:18 -08:00
John Ralls
f29764202e Bug 796982 - Import Bills & Invoices: change in un_escape() routine...
causes description and notes fields to be mangled.

Simple error, but rewrote the function to be more idiomatic, resisting
temptation to abuse the ternary operator.
2018-12-18 21:32:06 -08:00
John Ralls
2524482b55 Bug 796883 - Register text oddities
HOME and END need to be treated like right and left arrow keys.
2018-12-16 16:31:43 -08:00
John Ralls
f5be842c2e boost needs bcrypt.lib for all versions of Windows. 2018-12-16 16:31:06 -08:00
hauptsignal
68f8ba8baf Adding austrian account template
Österreichischer Einheitskontenrahmen, Stand Mai 2017
Von der Webseite der Kammer der Steuerberater und Wirtschaftsprüfer
(https://www.ksw.or.at/), Fachgutachten Betriebswirtschaft, KSF/BW 6.
2018-12-16 22:48:21 +01:00
Geert Janssens
9921ab22a2 Merge branch 'fixes02' of https://github.com/Bob-IT/gnucash into maint 2018-12-09 13:15:27 +01:00
Frank H. Ellenberger
353a3812aa Fix another may be used uninitialized warning 2018-12-07 11:55:30 +01:00
Kalev Lember
ff5e7657d5 Fixes to the appdata file
Rename the ID from org.gnucash.Gnucash to org.gnucash.GnuCash to match
flathub, and add a launchable ID to link it to the desktop file.
2018-12-06 09:16:41 +01:00
Christoph Holtermann
ff660a873e Revert "Question about GncMonetary class instead of tuple"
This reverts commit 8fe0b14213.
Question has been discussed in pull request.
2018-12-04 12:17:56 +01:00
Christoph Holtermann
8fe0b14213 Question about GncMonetary class instead of tuple 2018-12-04 12:14:23 +01:00
Christoph Holtermann
b431d471e0 decorate monetary list to access GncCommodity and GncNumeric 2018-12-04 12:14:23 +01:00
Christoph Holtermann
929a3bcd9e pass additional args and document function 2018-12-04 12:14:22 +01:00
Christoph Holtermann
96e27a4199 typo 2018-12-04 12:05:59 +01:00
Robert Fewell
c3dae07d83 Disallow tabs in the account notes field.
While using the tab key to navigate the fields of the edit account
dialogue, it stops in the notes field as it accepts tabs so by
disallowing use keyboard navigation can proceed.
2018-12-03 11:33:54 +00:00
Robert Fewell
5bc6922c14 Bug 796944 - Tab navigation From Company Address field in New Book Options
Disallow the use of tabs in all dialogue options text views. This is
mainly used for notes fields and CSS so should not really be an issue.
2018-12-03 10:55:36 +00:00
Robert Fewell
9e104ebc40 Bug 796948 - Scheduled Transactions Entered Since Last Run Are not Visible
Add a call to gnc_gui_refresh_all after the transactions have been
created so the registers are updated.
2018-12-02 14:16:24 +00:00
Robert Fewell
03da6116bf Bug 796886 - OFX Import does not show source account in the transaction matching window
If there is more than one account source in the import it makes it
difficult to allocate the transactions so add a toggle button to show
or hide the source account column with the default being that of the
calling function.
2018-12-02 14:16:24 +00:00
Robert Fewell
51ab6e7804 Bug796960 - Incorrect amount sort order in Generic import matcher window
The amount column was being sorted by string as opposed to amount value.
Added a DOUBLE value to the model store to hold a converted gnc_numeric
amount value and use that for sorting the tree view amount column. Also
made the amount column right justified so numbers align.
2018-12-02 14:15:07 +00:00
Robert Fewell
34e84fda85 Add ability to double click on file name for csv-trans-import 2018-12-02 11:25:37 +00:00
Robert Fewell
48b0739942 Add ability to double click on file name for csv-price-import 2018-12-02 11:25:37 +00:00
Robert Fewell
3321462123 Add ability to double click on file name for csv-account-import 2018-12-02 11:25:37 +00:00
Robert Fewell
31fcb76414 Add ability to double click on file name for csv-export 2018-12-02 11:25:27 +00:00
Robert Fewell
8c904edc25 Use existing page references instead of getting them in csv-export 2018-12-01 12:25:11 +00:00
Robert Fewell
0c58f78bdf Remove window reference and use assistant instead for csv-export 2018-12-01 12:23:18 +00:00
Robert Fewell
d9d24a9055 Missed adding new parent window parameter
Added a GtkWindow parameter to csv_import_read_file to pass to the
error dialogue but missed actually adding it.
2018-12-01 10:58:15 +00:00
Robert Fewell
a671e34134 Add some space to a previous alignment change
Add some space to the fixed width labels in the price and transaction
importer glade files.
2018-12-01 10:53:43 +00:00
Robert Fewell
3abd04321d okbutton may be used uninitialised in gnc-file.c 2018-12-01 10:46:19 +00:00
John Ralls
519880545b Fix missing screen for GLib < 3.22. 2018-11-30 17:10:10 +09:00
John Ralls
5dcb44d991 Fix regex in CMakeLists.txt.
Apparently CMake doesn't handle backslashes well and \.
doesn't work in spite of its being an example in the documentation.
2018-11-30 16:40:35 +09:00
John Ralls
e434835f68 Remove special Apple compile flags, no longer required. 2018-11-30 16:23:30 +09:00
John Ralls
3f09e5c6f1 Only disable register warnings for SWIG 2.
SWIG 3 has removed the register storage class markers.
2018-11-30 16:11:42 +09:00
John Ralls
e81bcf6e33 Fix the remaining static analysis warnings.
Except two incorrect leak warnings and one about mktemp
 being insecure in the XML backend. See the respective
comments about those.
2018-11-30 15:08:41 +09:00
John Ralls
bf55c30aeb Fix most of the unused assignment errors from static analysis.
There are a very few left that need deeper study, but this gets
rid of most of the noise. For the most part it's just getting rid of
extra variables or removing an assignment that is always
replaced later but before any reads of the variable. A few are
discarded result variables.
2018-11-30 15:08:41 +09:00
John Ralls
a93448414f Fix another uninitialized variable in register.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
f52609961e Fix uninitialized variables (and one leak) in gnome.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
185787d7be Initialize some gnc_numerics that could be returned uninitialized.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
8ed9a9c43a Initialize some variables that could be otherwise used uninitialized.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
7e10b05c49 Avoid over-ranging string storage.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
7283c86f6f Fix various static analysis logic errors in gnome-utils. 2018-11-30 15:08:41 +09:00
John Ralls
876bfd19ad Protect against nullptr dereference, remove unused GError.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
24ce92056d Protect from potential nullptr dereferences.
pmtsched is created in only one banch of the opening switch.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
8f22c4bed4 Localize variables, ensure that val_imbalance is set, test txn_curr != commodity once.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
4ffeb3efac Ensure that a dereferenced variable isn't NULL.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
43a30e1c97 Silence clang static analyzer complaint about potential div by 0.
It can't, because if b is 0 the function would have
returned already; since b.m_hi is 0 b.m_lo can't be. The assert
reassures clang that this is the case.
2018-11-30 15:08:41 +09:00
John Ralls
3d1362757b Prevent potential undefined behavior by shifting by a wrapped uint.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
606d9cfee6 Prevent potential nullptr dereference.
Found by clang static analyzer.
2018-11-30 15:08:41 +09:00
John Ralls
faba7975ac Fix a bunch of memory allocation errors found by clang static analysis. 2018-11-30 15:08:41 +09:00
Geert Janssens
de6c173ef4 Merge branch 'Bug796896' of https://github.com/Bob-IT/gnucash into maint 2018-11-28 14:21:16 +01:00