summaryrefslogtreecommitdiffstats
path: root/pica-client/main.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/main.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/main.cpp')
-rw-r--r--pica-client/main.cpp1
1 files changed, 1 insertions, 0 deletions
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