aboutsummaryrefslogtreecommitdiff
path: root/src/core/kdesktopfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/kdesktopfile.cpp')
-rw-r--r--src/core/kdesktopfile.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/kdesktopfile.cpp b/src/core/kdesktopfile.cpp
index eda7c292..4a550302 100644
--- a/src/core/kdesktopfile.cpp
+++ b/src/core/kdesktopfile.cpp
@@ -281,9 +281,12 @@ bool KDesktopFile::tryExec() const
QString te = d->desktopGroup.readEntry("TryExec", QString());
if (!te.isEmpty()) {
- return !QStandardPaths::findExecutable(te).isEmpty();
+ if (QStandardPaths::findExecutable(te).isEmpty()) {
+ return false;
+ }
}
const QStringList list = d->desktopGroup.readEntry("X-KDE-AuthorizeAction", QStringList());
+
if (!list.isEmpty()) {
for (QStringList::ConstIterator it = list.begin();
it != list.end();