mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +00:00
NOISSUE make visualvm work with relative paths (inside the MultiMC folder)
This commit is contained in:
parent
41aef8414a
commit
f115bdf5b8
@ -92,7 +92,8 @@ bool JVisualVMFactory::check(const QString &path, QString *error)
|
||||
*error = QObject::tr("Empty path");
|
||||
return false;
|
||||
}
|
||||
if (!QDir::isAbsolutePath(path) || !QFileInfo(path).isExecutable() || !path.contains("visualvm"))
|
||||
QFileInfo finfo(path);
|
||||
if (!finfo.isExecutable() || !finfo.fileName().contains("visualvm"))
|
||||
{
|
||||
*error = QObject::tr("Invalid path to JVisualVM");
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user