From 6c15f4fae8671f2efcfb07f9aa791cb21716ffcf Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Mon, 29 Jan 2024 15:18:52 +0300 Subject: [PATCH] UI: ProgramEditDialog: Hide icon for wildcard --- src/ui/form/prog/programeditdialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/form/prog/programeditdialog.cpp b/src/ui/form/prog/programeditdialog.cpp index b126f54f..98f77f5f 100644 --- a/src/ui/form/prog/programeditdialog.cpp +++ b/src/ui/form/prog/programeditdialog.cpp @@ -131,8 +131,9 @@ void ProgramEditDialog::initializeNameField(bool isSingleSelection, bool isPathE m_editNotes->setText(m_appRow.notes); m_editNotes->setEnabled(isSingleSelection); - m_labelEditNotes->setPixmap( - isSingleSelection ? IoC()->appIcon(m_appRow.appPath) : QPixmap()); + m_labelEditNotes->setPixmap(isSingleSelection && !isPathEditable + ? IoC()->appIcon(m_appRow.appPath) + : QPixmap()); if (isSingleSelection) { if (m_appRow.appName.isEmpty()) {