mirror of
https://github.com/tnodir/fort
synced 2024-11-15 13:06:36 +00:00
UI: AppListModel::appRowById: Fix typo
This commit is contained in:
parent
c1d89613b5
commit
ae95141aa6
@ -259,8 +259,7 @@ void ProgramsWindow::setupEditMenu()
|
|||||||
m_actAddApp = editMenu->addAction(IconCache::icon(":/icons/add.png"), QString());
|
m_actAddApp = editMenu->addAction(IconCache::icon(":/icons/add.png"), QString());
|
||||||
m_actAddApp->setShortcut(Qt::Key_Plus);
|
m_actAddApp->setShortcut(Qt::Key_Plus);
|
||||||
|
|
||||||
m_actAddWildcard =
|
m_actAddWildcard = editMenu->addAction(IconCache::icon(":/icons/coding.png"), QString());
|
||||||
editMenu->addAction(IconCache::icon(":/icons/coding.png"), QString());
|
|
||||||
m_actAddWildcard->setShortcut(QKeyCombination(Qt::CTRL, Qt::Key_N));
|
m_actAddWildcard->setShortcut(QKeyCombination(Qt::CTRL, Qt::Key_N));
|
||||||
|
|
||||||
m_actEditApp = editMenu->addAction(IconCache::icon(":/icons/pencil.png"), QString());
|
m_actEditApp = editMenu->addAction(IconCache::icon(":/icons/pencil.png"), QString());
|
||||||
|
@ -438,8 +438,11 @@ const AppRow &AppListModel::appRowAt(int row) const
|
|||||||
|
|
||||||
AppRow AppListModel::appRowById(qint64 appId) const
|
AppRow AppListModel::appRowById(qint64 appId) const
|
||||||
{
|
{
|
||||||
|
QVariantHash vars;
|
||||||
|
vars.insert(":app_id", appId);
|
||||||
|
|
||||||
AppRow appRow;
|
AppRow appRow;
|
||||||
updateAppRow(sqlBase() + " WHERE t.app_id = :id;", { { "id", appId } }, appRow);
|
updateAppRow(sqlBase() + " WHERE t.app_id = :app_id;", vars, appRow);
|
||||||
return appRow;
|
return appRow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user