Fix #474: Bad jvisualvm check
This commit is contained in:
parent
add23a9a0b
commit
7d1dd2a32f
@ -64,8 +64,7 @@ bool JVisualVMFactory::check(const QString &path, QString *error)
|
|||||||
*error = QObject::tr("Empty path");
|
*error = QObject::tr("Empty path");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
QString resolved = QStandardPaths::findExecutable(path);
|
if (!QDir::isAbsolutePath(path) || !QFileInfo(path).isExecutable() || !path.contains("visualvm"))
|
||||||
if (resolved.isEmpty() && !QDir::isAbsolutePath(path))
|
|
||||||
{
|
{
|
||||||
*error = QObject::tr("Invalid path to JVisualVM");
|
*error = QObject::tr("Invalid path to JVisualVM");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user