diff options
| author | Anton <anton@picapica> | 2017-12-30 21:30:53 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2017-12-30 21:30:53 +0400 |
| commit | 5cf791b272ca46b648842417fe7c0bd7fe3249d1 (patch) | |
| tree | 3dbc26fcd0075940a139e73dbd4dd5b1342ef91d /pica-client/main.cpp | |
| parent | 833c5d5173cd4a37e14a587b72f7bf696c6e4b77 (diff) | |
| download | pica-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.cpp | 1 |
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 |
