From 4f313fb96ada615b209a6e37832da140abf63b07 Mon Sep 17 00:00:00 2001 From: Arno Moeller Date: Fri, 9 Jul 2010 17:47:08 +0200 Subject: First version of NewMovieWizard::accept This version is not tested and may contain some very exiting, new bugs. But it compiles. --- filestreemodel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'filestreemodel.cpp') diff --git a/filestreemodel.cpp b/filestreemodel.cpp index 35883d3..76dca8b 100644 --- a/filestreemodel.cpp +++ b/filestreemodel.cpp @@ -224,6 +224,9 @@ bool FilesTreeModel::addFile(const QString &fullPath, int type, int quality, int //insert item if(mInsertFileQuery->exec()){ - + mDb.commit(); + return true; } + mDb.rollback(); + return false; } -- cgit v1.2.3-70-g09d2