if (!QCoreApplication::closingDown())
This commit is contained in:
parent
32e3e6cf9c
commit
6ebff42e6d
@ -52,7 +52,7 @@ StorageThread::StorageThread(QObject *parent)
|
|||||||
|
|
||||||
StorageThread::~StorageThread()
|
StorageThread::~StorageThread()
|
||||||
{
|
{
|
||||||
if (QCoreApplication::closingDown()) {
|
if (!QCoreApplication::closingDown()) {
|
||||||
QString name = m_db.connectionName();
|
QString name = m_db.connectionName();
|
||||||
QSqlDatabase::removeDatabase(name);
|
QSqlDatabase::removeDatabase(name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user