Diffstat (limited to 'noncore/apps/checkbook/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/mainwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 | } |