Show warning when closing the database fails

This commit is contained in:
Martin Kleusberg
2018-12-27 11:30:53 +01:00
parent 544ed812e2
commit 730b494ce7

View File

@@ -629,7 +629,8 @@ bool DBBrowserDB::close()
else
revertAll(); //not really necessary, I think... but will not hurt.
}
sqlite3_close(_db);
if(sqlite3_close(_db) != SQLITE_OK)
qWarning() << tr("Database didn't close correctly, probably still busy");
_db = nullptr;
}