aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/kdesktopfile.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/kdesktopfile.cpp b/src/core/kdesktopfile.cpp
index 6278309e..6381cb30 100644
--- a/src/core/kdesktopfile.cpp
+++ b/src/core/kdesktopfile.cpp
@@ -101,8 +101,7 @@ QString KDesktopFile::locateLocal(const QString &path)
bool KDesktopFile::isDesktopFile(const QString &path)
{
- return (path.length() > 8
- && path.endsWith(QLatin1String(".desktop")));
+ return path.endsWith(QLatin1String(".desktop"));
}
bool KDesktopFile::isAuthorizedDesktopFile(const QString &path)