summaryrefslogtreecommitdiffstats
path: root/pica-client/nodes.cpp
diff options
context:
space:
mode:
authorAnton <anton@picapica>2017-12-30 21:30:53 +0400
committerAnton <anton@picapica>2017-12-30 21:30:53 +0400
commit5cf791b272ca46b648842417fe7c0bd7fe3249d1 (patch)
tree3dbc26fcd0075940a139e73dbd4dd5b1342ef91d /pica-client/nodes.cpp
parent833c5d5173cd4a37e14a587b72f7bf696c6e4b77 (diff)
downloadpica-pica-5cf791b272ca46b648842417fe7c0bd7fe3249d1.tar.gz
pica-pica-5cf791b272ca46b648842417fe7c0bd7fe3249d1.zip
pica-client: use single sqlite database connection instance, prevents multiple warnings about connection in use
Diffstat (limited to 'pica-client/nodes.cpp')
-rw-r--r--pica-client/nodes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pica-client/nodes.cpp b/pica-client/nodes.cpp
index 93ae5e2..229cb4a 100644
--- a/pica-client/nodes.cpp
+++ b/pica-client/nodes.cpp
@@ -2,7 +2,7 @@
Nodes::Nodes(QString storage)
{
- dbconn = QSqlDatabase::addDatabase("QSQLITE");
+ dbconn = QSqlDatabase::database();
dbconn.setDatabaseName(storage);
if (!dbconn.open())