From 5cf791b272ca46b648842417fe7c0bd7fe3249d1 Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 30 Dec 2017 21:30:53 +0400 Subject: pica-client: use single sqlite database connection instance, prevents multiple warnings about connection in use --- pica-client/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'pica-client/main.cpp') diff --git a/pica-client/main.cpp b/pica-client/main.cpp index cadc6d5..90e093a 100644 --- a/pica-client/main.cpp +++ b/pica-client/main.cpp @@ -485,6 +485,7 @@ int main(int argc, char *argv[]) { QApplication a(argc, argv); + QSqlDatabase::addDatabase("QSQLITE"); if (!create_config_dir()) return -1; #ifndef WIN32 -- cgit v1.2.1