diff options
author | Arno Moeller <am@mindwerk.de> | 2010-07-09 17:47:08 +0200 |
---|---|---|
committer | Arno Moeller <am@mindwerk.de> | 2010-07-09 17:47:08 +0200 |
commit | 4f313fb96ada615b209a6e37832da140abf63b07 (patch) | |
tree | 5ed574d9726bd79dad4c7c6ae52e1995bafc1775 /filestreemodel.cpp | |
parent | 36d60fc19f6cbc1a76931479664589544411763b (diff) | |
download | SheMov-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.cpp | 5 |
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; } |