mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Show warning when closing the database fails
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user