diff --git a/mythtv/libs/libmythui/myththemedmenu.cpp b/mythtv/libs/libmythui/myththemedmenu.cpp
index a0f20ad..a0c17c6 100644
a
|
b
|
|
7 | 7 | #include <QKeyEvent> |
8 | 8 | #include <QDomDocument> |
9 | 9 | #include <QFile> |
| 10 | #include <QFileInfo> |
10 | 11 | #include <QTextStream> |
11 | 12 | |
12 | 13 | // libmythui headers |
… |
… |
void MythThemedMenu::parseThemeButton(QDomElement &element) |
483 | 484 | { |
484 | 485 | addit = findDepends(getFirstText(info)); |
485 | 486 | } |
| 487 | else if (info.tagName() == "dependsexec") |
| 488 | { |
| 489 | addit = findDependsExec(getFirstText(info)); |
| 490 | } |
486 | 491 | else if (info.tagName() == "dependssetting") |
487 | 492 | { |
488 | 493 | addit = GetMythDB()->GetNumSetting(getFirstText(info)); |
… |
… |
bool MythThemedMenu::findDepends(const QString &fileList) |
859 | 864 | return false; |
860 | 865 | } |
861 | 866 | |
| 867 | bool MythThemedMenu::findDependsExec(const QString &filename) |
| 868 | { |
| 869 | QFileInfo filename_info(filename); |
| 870 | if (filename_info.exists() && filename_info.isFile() && filename_info.isExecutable()) |
| 871 | return true; |
| 872 | return false; |
| 873 | } |
| 874 | |
862 | 875 | /** \brief Queries the user for a password to enter a part of MythTV |
863 | 876 | * restricted by a password. |
864 | 877 | * |
diff --git a/mythtv/libs/libmythui/myththemedmenu.h b/mythtv/libs/libmythui/myththemedmenu.h
index 5ecf6c7..e4028d7 100644
a
|
b
|
class MUI_PUBLIC MythThemedMenu : public MythThemedMenuState |
102 | 102 | |
103 | 103 | bool handleAction(const QString &action, const QString &password = QString()); |
104 | 104 | bool findDepends(const QString &fileList); |
| 105 | bool findDependsExec(const QString &filename); |
105 | 106 | QString findMenuFile(const QString &menuname); |
106 | 107 | |
107 | 108 | bool checkPinCode(const QString &password_setting); |