From 1754c101d64a058e6519e53f9c985c2eaff8b101 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sat, 8 Jan 2022 23:43:25 +0300 Subject: [PATCH] UI: ProgramEditDialog: Remove appInfoCache() --- src/ui/form/prog/programeditdialog.cpp | 7 +------ src/ui/form/prog/programeditdialog.h | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/ui/form/prog/programeditdialog.cpp b/src/ui/form/prog/programeditdialog.cpp index 6e1d05ad..4f6d164a 100644 --- a/src/ui/form/prog/programeditdialog.cpp +++ b/src/ui/form/prog/programeditdialog.cpp @@ -52,11 +52,6 @@ FirewallConf *ProgramEditDialog::conf() const return ctrl()->conf(); } -AppInfoCache *ProgramEditDialog::appInfoCache() const -{ - return IoC(); -} - 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()->appName(appPath); m_editName->setText(appName); }; diff --git a/src/ui/form/prog/programeditdialog.h b/src/ui/form/prog/programeditdialog.h index e3dd62ca..558196c7 100644 --- a/src/ui/form/prog/programeditdialog.h +++ b/src/ui/form/prog/programeditdialog.h @@ -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 &appIdList);