diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-14 14:08:52 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-14 14:08:52 -0600 |
commit | 8654cea10f6902719006d5975db7dc07b2fcc713 (patch) | |
tree | 6cf0608a089c234056746a467f739722687b645a /kmymoney2/views/kgloballedgerview.cpp | |
parent | 2a54aa58cfe166f48d6f1395cbc6c9bfd5e31bfc (diff) | |
download | kmymoney-8654cea10f6902719006d5975db7dc07b2fcc713.tar.gz kmymoney-8654cea10f6902719006d5975db7dc07b2fcc713.zip |
Update to upstream stable version 1.0.5
Diffstat (limited to 'kmymoney2/views/kgloballedgerview.cpp')
-rw-r--r-- | kmymoney2/views/kgloballedgerview.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kmymoney2/views/kgloballedgerview.cpp b/kmymoney2/views/kgloballedgerview.cpp index 8209d3f..e82459a 100644 --- a/kmymoney2/views/kgloballedgerview.cpp +++ b/kmymoney2/views/kgloballedgerview.cpp @@ -485,7 +485,12 @@ void KGlobalLedgerView::loadView(void) break; // for all others, we check if the next payment date is still 'in range' - s.setNextDueDate(s.nextPayment(s.nextDueDate())); + TQDate nextDueDate = s.nextPayment(s.nextDueDate()); + if (nextDueDate.isValid()) { + s.setNextDueDate(nextDueDate); + } else { + break; + } } scheduleList.pop_front(); } |