mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
* Enable shared qsqlite caches.
This commit is contained in:
parent
d481ffbd90
commit
06d79cd788
@ -717,6 +717,7 @@ DatabaseImpl::openDatabase( const QString& dbname, bool checkSchema )
|
||||
{
|
||||
QSqlDatabase db = QSqlDatabase::addDatabase( "QSQLITE", connName );
|
||||
db.setDatabaseName( dbname );
|
||||
db.setConnectOptions( "QSQLITE_ENABLE_SHARED_CACHE=1" );
|
||||
if ( !db.open() )
|
||||
{
|
||||
tLog() << "Failed to open database" << dbname;
|
||||
|
Loading…
x
Reference in New Issue
Block a user