data: Fixed db crash on closing application due to multiple initializations of statements
This commit is contained in:
@@ -35,7 +35,12 @@ void SqliteStorage::setup()
|
||||
if (isEmpty() || !isIncompatible())
|
||||
{
|
||||
setupTables();
|
||||
setupPrecompiledStatements();
|
||||
|
||||
if (!m_precompiledStatementsInitialized)
|
||||
{
|
||||
setupPrecompiledStatements();
|
||||
m_precompiledStatementsInitialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
m_mode = STORAGE_MODE_UNKNOWN;
|
||||
|
||||
Reference in New Issue
Block a user