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/history.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pica-client/history.cpp') diff --git a/pica-client/history.cpp b/pica-client/history.cpp index 933e2a9..77afe1b 100644 --- a/pica-client/history.cpp +++ b/pica-client/history.cpp @@ -4,7 +4,7 @@ History::History(QString storage, QByteArray my_id) : me_(my_id) { - dbconn = QSqlDatabase::addDatabase("QSQLITE"); + dbconn = QSqlDatabase::database(); dbconn.setDatabaseName(storage); if (!dbconn.open()) -- cgit v1.2.1