Use only single database

This commit is contained in:
2025-03-18 14:46:08 +01:00
parent f30dd2a520
commit 6fd17fbdf5
7 changed files with 38 additions and 22 deletions
+2 -1
View File
@@ -10,6 +10,7 @@
class Database : public QObject
{
Q_OBJECT
QSqlDatabase database;
QSqlQuery m_markQuery;
QSqlQuery m_unmarkQuery;
QSqlQuery m_isMarkedQuery;
@@ -40,7 +41,7 @@ protected:
bool indexDir2(const QDir &dir, QProgressDialog *progress, QStringList &scannedDirs);
bool indexFile(const QFileInfo &file);
bool checkError(QSqlQuery &query);
int checkVersion();
int checkVersion(QSqlDatabase &db);
signals:
void databaseChanged();
};