summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/checkbook.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/checkbook/checkbook.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/checkbook/checkbook.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/apps/checkbook/checkbook.cpp b/noncore/apps/checkbook/checkbook.cpp
index 77c1f57..ab25516 100644
--- a/noncore/apps/checkbook/checkbook.cpp
+++ b/noncore/apps/checkbook/checkbook.cpp
@@ -313,3 +313,3 @@ void Checkbook::loadCheckbook()
// Add to transaction list
- transactions.append( tran );
+ transactions.inSort( tran );
@@ -417,3 +417,3 @@ void Checkbook::slotNewTran()
// Add to transaction list
- transactions.append( traninfo );
+ transactions.inSort( traninfo );
@@ -564,3 +564,3 @@ void Checkbook::drawCategoryChart( bool withdrawals )
TranInfo *tran = transactions.first();
- if ( tran->withdrawal() == withdrawals )
+ if ( tran && tran->withdrawal() == withdrawals )
{