From 9c2b4d917af88b6051a3bc4273d6a50d124f65dd Mon Sep 17 00:00:00 2001 From: drw Date: Sun, 08 Dec 2002 23:52:11 +0000 Subject: Fixed saving of new checkbooks and incorrect setting of notes. --- (limited to 'noncore/apps') diff --git a/noncore/apps/checkbook/cbinfo.cpp b/noncore/apps/checkbook/cbinfo.cpp index 3a39317..9fdc6b2 100644 --- a/noncore/apps/checkbook/cbinfo.cpp +++ b/noncore/apps/checkbook/cbinfo.cpp @@ -92,7 +92,7 @@ void CBInfo::write() config->writeEntry( "Bank", bn ); config->writeEntryCrypt( "Number", a ); config->writeEntryCrypt( "PINNumber", p ); - config->writeEntry( "Notes", n ); + config->writeEntry( "Notes", nt ); QString balstr; balstr.setNum( sb, 'f', 2 ); config->writeEntry( "Balance", balstr ); diff --git a/noncore/apps/checkbook/mainwindow.cpp b/noncore/apps/checkbook/mainwindow.cpp index 68c6aee..cabd231 100644 --- a/noncore/apps/checkbook/mainwindow.cpp +++ b/noncore/apps/checkbook/mainwindow.cpp @@ -204,6 +204,12 @@ void MainWindow::slotNew() currcb->showMaximized(); if ( currcb->exec() == QDialog::Accepted ) { + // Save new checkbook + buildFilename( cb->name() ); + cb->setFilename( tempFilename ); + cb->write(); + + // Add to listbox checkbooks->inSort( cb ); addCheckbook( cb ); } -- cgit v0.9.0.2