summaryrefslogtreecommitdiffstats
path: root/logic/profiler/JProfiler.cpp
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-02-15 18:15:41 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-02-15 18:15:41 +0100
commitc0e58fbfb213c05f0259dab9bf5b7aabd6f373cf (patch)
treee143457111f52b7627a8092943fd3698c758e4f7 /logic/profiler/JProfiler.cpp
parent6f6d912d07901efebf5f399ee94c458acdc1369b (diff)
downloadMultiMC-c0e58fbfb213c05f0259dab9bf5b7aabd6f373cf.tar
MultiMC-c0e58fbfb213c05f0259dab9bf5b7aabd6f373cf.tar.gz
MultiMC-c0e58fbfb213c05f0259dab9bf5b7aabd6f373cf.tar.lz
MultiMC-c0e58fbfb213c05f0259dab9bf5b7aabd6f373cf.tar.xz
MultiMC-c0e58fbfb213c05f0259dab9bf5b7aabd6f373cf.zip
Try to be cross-platform
Diffstat (limited to 'logic/profiler/JProfiler.cpp')
-rw-r--r--logic/profiler/JProfiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/profiler/JProfiler.cpp b/logic/profiler/JProfiler.cpp
index aa6a866a..eddf46d9 100644
--- a/logic/profiler/JProfiler.cpp
+++ b/logic/profiler/JProfiler.cpp
@@ -16,7 +16,7 @@ void JProfiler::beginProfilingImpl(MinecraftProcess *process)
{
int port = MMC->settings()->get("JProfilerPort").toInt();
QProcess *profiler = new QProcess(this);
- profiler->setArguments(QStringList() << "-d" << QString::number(process->pid()) << "--gui"
+ profiler->setArguments(QStringList() << "-d" << QString::number(pid(process)) << "--gui"
<< "-p" << QString::number(port));
profiler->setProgram(QDir(MMC->settings()->get("JProfilerPath").toString())
.absoluteFilePath("bin/jpenable"));