summaryrefslogtreecommitdiff
path: root/noncore
Unidiff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/cbinfo.cpp2
-rw-r--r--noncore/apps/checkbook/mainwindow.cpp6
2 files changed, 7 insertions, 1 deletions
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()
92 config->writeEntry( "Bank", bn ); 92 config->writeEntry( "Bank", bn );
93 config->writeEntryCrypt( "Number", a ); 93 config->writeEntryCrypt( "Number", a );
94 config->writeEntryCrypt( "PINNumber", p ); 94 config->writeEntryCrypt( "PINNumber", p );
95 config->writeEntry( "Notes", n ); 95 config->writeEntry( "Notes", nt );
96 QString balstr; 96 QString balstr;
97 balstr.setNum( sb, 'f', 2 ); 97 balstr.setNum( sb, 'f', 2 );
98 config->writeEntry( "Balance", balstr ); 98 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()
204 currcb->showMaximized(); 204 currcb->showMaximized();
205 if ( currcb->exec() == QDialog::Accepted ) 205 if ( currcb->exec() == QDialog::Accepted )
206 { 206 {
207 // Save new checkbook
208 buildFilename( cb->name() );
209 cb->setFilename( tempFilename );
210 cb->write();
211
212 // Add to listbox
207 checkbooks->inSort( cb ); 213 checkbooks->inSort( cb );
208 addCheckbook( cb ); 214 addCheckbook( cb );
209 } 215 }