summaryrefslogtreecommitdiffstats
path: root/filestreemodel.cpp
diff options
context:
space:
mode:
authorArno Moeller <am@mindwerk.de>2010-07-09 17:47:08 +0200
committerArno Moeller <am@mindwerk.de>2010-07-09 17:47:08 +0200
commit4f313fb96ada615b209a6e37832da140abf63b07 (patch)
tree5ed574d9726bd79dad4c7c6ae52e1995bafc1775 /filestreemodel.cpp
parent36d60fc19f6cbc1a76931479664589544411763b (diff)
downloadSheMov-4f313fb96ada615b209a6e37832da140abf63b07.tar.gz
SheMov-4f313fb96ada615b209a6e37832da140abf63b07.tar.bz2
SheMov-4f313fb96ada615b209a6e37832da140abf63b07.zip
First version of NewMovieWizard::accept
This version is not tested and may contain some very exiting, new bugs. But it compiles.
Diffstat (limited to 'filestreemodel.cpp')
-rw-r--r--filestreemodel.cpp5
1 files changed, 4 insertions, 1 deletions
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;
}