UI: AppListModel::appRowById: Fix typo

This commit is contained in:
Nodir Temirkhodjaev 2024-03-12 18:20:15 +03:00
parent c1d89613b5
commit ae95141aa6
2 changed files with 5 additions and 3 deletions

View File

@ -259,8 +259,7 @@ void ProgramsWindow::setupEditMenu()
m_actAddApp = editMenu->addAction(IconCache::icon(":/icons/add.png"), QString());
m_actAddApp->setShortcut(Qt::Key_Plus);
m_actAddWildcard =
editMenu->addAction(IconCache::icon(":/icons/coding.png"), QString());
m_actAddWildcard = editMenu->addAction(IconCache::icon(":/icons/coding.png"), QString());
m_actAddWildcard->setShortcut(QKeyCombination(Qt::CTRL, Qt::Key_N));
m_actEditApp = editMenu->addAction(IconCache::icon(":/icons/pencil.png"), QString());

View File

@ -438,8 +438,11 @@ const AppRow &AppListModel::appRowAt(int row) const
AppRow AppListModel::appRowById(qint64 appId) const
{
QVariantHash vars;
vars.insert(":app_id", appId);
AppRow appRow;
updateAppRow(sqlBase() + " WHERE t.app_id = :id;", { { "id", appId } }, appRow);
updateAppRow(sqlBase() + " WHERE t.app_id = :app_id;", vars, appRow);
return appRow;
}