Don't keep QSqlDatabase instance

This commit is contained in:
2022-04-11 10:33:28 +02:00
parent 84a71896f8
commit 61a618b2fd
2 changed files with 13 additions and 12 deletions
+1 -2
View File
@@ -10,7 +10,6 @@
class Database : public QObject
{
Q_OBJECT
QSqlDatabase m_database;
QSqlQuery m_markQuery;
QSqlQuery m_unmarkQuery;
QSqlQuery m_isMarkedQuery;
@@ -34,7 +33,7 @@ public:
QStringList getFitsKeywords();
protected:
bool indexDir2(const QDir &dir, QProgressDialog *progress);
bool checkError();
bool checkError(QSqlQuery &query);
};
#endif // DATABASE_H