From 5901b48503fc4726dded3c2975af315d48d4fdcd Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Wed, 16 Aug 2023 18:58:53 +0500 Subject: [PATCH] UI: SqliteDb: Minor refactor --- src/ui/3rdparty/sqlite/sqlitedb.cpp | 2 +- src/ui/conf/confmanager.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/3rdparty/sqlite/sqlitedb.cpp b/src/ui/3rdparty/sqlite/sqlitedb.cpp index 1dc64189..eb8352b0 100644 --- a/src/ui/3rdparty/sqlite/sqlitedb.cpp +++ b/src/ui/3rdparty/sqlite/sqlitedb.cpp @@ -290,7 +290,7 @@ QStringList SqliteDb::tableNames(const QString &schemaName) const auto sql = QString("SELECT name FROM %1" " WHERE type = 'table'" " AND name NOT LIKE 'sqlite_%'" - " AND name NOT LIKE '%%2_%';") + " AND name NOT LIKE '%%2%';") .arg(masterTable, ftsTableSuffix); SqliteStmt stmt; diff --git a/src/ui/conf/confmanager.cpp b/src/ui/conf/confmanager.cpp index 9dde8d22..33d9e17c 100644 --- a/src/ui/conf/confmanager.cpp +++ b/src/ui/conf/confmanager.cpp @@ -933,6 +933,8 @@ bool ConfManager::purgeApps() if (FileUtil::isDriveFilePath(appPath) && !AppInfoUtil::fileExists(appPath)) { const qint64 appId = stmt.columnInt64(0); appIdList.append(appId); + + qCDebug(LC) << "Purge obsolete app:" << appId << appPath; } } }