summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/checkbook/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/mainwindow.cpp6
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()
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 );
}