[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/office/kraft/src
From:       Klaas Freitag <klaas () freisturz ! de>
Date:       2012-11-24 21:13:47
Message-ID: 20121124211347.2C4A1AC85F () svn ! kde ! org
[Download RAW message or body]

SVN commit 1325997 by freitag:

SubmitAll after all items have been written.

 M  +2 -1      documentsaverdb.cpp  


--- trunk/playground/office/kraft/src/documentsaverdb.cpp #1325996:1325997
@@ -224,7 +224,6 @@
         } else {
           kDebug() << "Updating!" << endl;
           model.setRecord(0, record);
-          model.submitAll();
         }
       } else {
         kDebug() << "ERR: No record object found!" << endl;
@@ -238,6 +237,8 @@
       }
     }
   }
+  model.submitAll();
+
 }
 
 void DocumentSaverDB::fillDocumentBuffer( QSqlRecord &buf, KraftDoc *doc )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic