From c0e58fbfb213c05f0259dab9bf5b7aabd6f373cf Mon Sep 17 00:00:00 2001 From: Jan Dalheimer Date: Sat, 15 Feb 2014 18:15:41 +0100 Subject: Try to be cross-platform --- logic/profiler/JProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'logic/profiler/JProfiler.cpp') 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")); -- cgit