forked from qt-creator/qt-creator
SettingsDB: Use APIs for begin/end transaction
Change-Id: I6d45e143a15922b0206ac45bb4c751b5096a2935 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
53eaff292e
commit
15eadbe555
@@ -260,14 +260,14 @@ void SettingsDatabase::beginTransaction()
|
||||
{
|
||||
if (!d->m_db.isOpen())
|
||||
return;
|
||||
d->m_db.exec(QLatin1String("BEGIN TRANSACTION;"));
|
||||
d->m_db.transaction();
|
||||
}
|
||||
|
||||
void SettingsDatabase::endTransaction()
|
||||
{
|
||||
if (!d->m_db.isOpen())
|
||||
return;
|
||||
d->m_db.exec(QLatin1String("END TRANSACTION;"));
|
||||
d->m_db.commit();
|
||||
}
|
||||
|
||||
void SettingsDatabase::sync()
|
||||
|
||||
Reference in New Issue
Block a user