From 730b494ce7e17e5618c9bd8774683c0353c73138 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Thu, 27 Dec 2018 11:30:53 +0100 Subject: [PATCH] Show warning when closing the database fails --- src/sqlitedb.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sqlitedb.cpp b/src/sqlitedb.cpp index 4ba5fe18..cdb78e54 100644 --- a/src/sqlitedb.cpp +++ b/src/sqlitedb.cpp @@ -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; }