Commit 77bf8dc6 authored by oberion's avatar oberion

Solved bug with QSqlDataBase

Before removing a database, has to be sure that the variable associated with the database is out of scope
parent 84fcead8
......@@ -227,6 +227,7 @@ namespace core {
#endif //DEBUG_PUREIMAGECACHE
QString db=dir+"Data.qmdb";
{
QSqlDatabase cn;
cn = QSqlDatabase::addDatabase("QSQLITE",QString::number(id));
......@@ -244,6 +245,7 @@ namespace core {
}
cn.close();
}
}
QSqlDatabase::removeDatabase(QString::number(id));
lock.unlock();
return ar;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment