mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 799225 - QIF Importer Crashes Silently after "Start Import" Button
Don't allow a QIF investment transaction without an action (buy/sell/etc)
This commit is contained in:
parent
6d0007ec30
commit
f7e3038e38
@ -596,6 +596,13 @@
|
|||||||
(else
|
(else
|
||||||
(apply xaccTransSetDate gnc-xtn (qif-xtn:date qif-xtn))))
|
(apply xaccTransSetDate gnc-xtn (qif-xtn:date qif-xtn))))
|
||||||
|
|
||||||
|
(unless qif-action
|
||||||
|
(qif-import:log progress-dialog "qif-import:qif-xtn-to-gnc-xtn"
|
||||||
|
(format #f (G_ "Missing QIF investment action for transaction dated ~a.")
|
||||||
|
(qof-print-date (qif-date-to-time64 qif-date))))
|
||||||
|
(throw 'missing-action "qif-import:qif-xtn-to-gnc-xtn" "Missing investment action."
|
||||||
|
#f #f))
|
||||||
|
|
||||||
;; fixme: bug #105
|
;; fixme: bug #105
|
||||||
(if qif-payee
|
(if qif-payee
|
||||||
(xaccTransSetDescription gnc-xtn qif-payee))
|
(xaccTransSetDescription gnc-xtn qif-payee))
|
||||||
|
Loading…
Reference in New Issue
Block a user