summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/cbinfo.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/checkbook/cbinfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/cbinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/checkbook/cbinfo.cpp b/noncore/apps/checkbook/cbinfo.cpp
index 36dde04..6e3afa7 100644
--- a/noncore/apps/checkbook/cbinfo.cpp
+++ b/noncore/apps/checkbook/cbinfo.cpp
@@ -157,49 +157,49 @@ void CBInfo::removeTransaction( TranInfo *tran )
tl->removeRef( tran );
delete tran;
calcBalance();
}
// --- loadTransactions -------------------------------------------------------
// Reads the transactions. Either the old way 1-n or as linked list.
void CBInfo::loadTransactions()
{
TranInfo *tran;
QString trandesc = "";
tl = new TranInfoList();
Config config( fn, Config::File );
int i=_first;
bool bOld=false;
if( i==-1 ) {
i=1;
bOld=true;
}
while( i>=0 ) {
_last=i;
- tran=new TranInfo(config, i);
+ tran=new TranInfo(&config, i);
trandesc = tran->desc();
if( trandesc==QString::null ) {
delete tran;
break;
}
tl->append(tran);
i= bOld ? i+1 : tran->getNext();
}
calcBalance();
}
// --- calcBalance ------------------------------------------------------------
void CBInfo::calcBalance()
{
float amount;
b = sb;
for ( TranInfo *tran = tl->first(); tran; tran = tl->next() )
{
b -= tran->fee();
amount = tran->amount();