summaryrefslogtreecommitdiffstats
path: root/logic/tools/JVisualVM.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/tools/JVisualVM.cpp')
-rw-r--r--logic/tools/JVisualVM.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/logic/tools/JVisualVM.cpp b/logic/tools/JVisualVM.cpp
index 33e271b4..f47294d7 100644
--- a/logic/tools/JVisualVM.cpp
+++ b/logic/tools/JVisualVM.cpp
@@ -64,8 +64,7 @@ bool JVisualVMFactory::check(const QString &path, QString *error)
*error = QObject::tr("Empty path");
return false;
}
- QString resolved = QStandardPaths::findExecutable(path);
- if (resolved.isEmpty() && !QDir::isAbsolutePath(path))
+ if (!QDir::isAbsolutePath(path) || !QFileInfo(path).isExecutable() || !path.contains("visualvm"))
{
*error = QObject::tr("Invalid path to JVisualVM");
return false;