UI: ProgramEditDialog: Remove appInfoCache()

This commit is contained in:
Nodir Temirkhodjaev 2022-01-08 23:43:25 +03:00
parent 512930407b
commit 1754c101d6
2 changed files with 1 additions and 8 deletions

View File

@ -52,11 +52,6 @@ FirewallConf *ProgramEditDialog::conf() const
return ctrl()->conf();
}
AppInfoCache *ProgramEditDialog::appInfoCache() const
{
return IoC<AppInfoCache>();
}
AppListModel *ProgramEditDialog::appListModel() const
{
return ctrl()->appListModel();
@ -264,7 +259,7 @@ QLayout *ProgramEditDialog::setupAppNameLayout()
if (appPath.isEmpty())
return;
const QString appName = appInfoCache()->appName(appPath);
const QString appName = IoC<AppInfoCache>()->appName(appPath);
m_editName->setText(appName);
};

View File

@ -13,7 +13,6 @@ QT_FORWARD_DECLARE_CLASS(QLineEdit)
QT_FORWARD_DECLARE_CLASS(QPushButton)
QT_FORWARD_DECLARE_CLASS(QRadioButton)
class AppInfoCache;
class CheckSpinCombo;
class ConfManager;
class FirewallConf;
@ -31,7 +30,6 @@ public:
FortManager *fortManager() const;
ConfManager *confManager() const;
FirewallConf *conf() const;
AppInfoCache *appInfoCache() const;
AppListModel *appListModel() const;
void initialize(const AppRow &appRow, const QVector<qint64> &appIdList);