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/history.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/history.cpp')
| -rw-r--r-- | pica-client/history.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |
