summaryrefslogtreecommitdiffstats
path: root/logic/launch/LoggedProcess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/launch/LoggedProcess.cpp')
-rw-r--r--logic/launch/LoggedProcess.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/logic/launch/LoggedProcess.cpp b/logic/launch/LoggedProcess.cpp
index f6c866de..ffdec97b 100644
--- a/logic/launch/LoggedProcess.cpp
+++ b/logic/launch/LoggedProcess.cpp
@@ -148,3 +148,12 @@ void LoggedProcess::on_stateChange(QProcess::ProcessState state)
}
}
}
+
+qint64 LoggedProcess::processId() const
+{
+#ifdef Q_OS_WIN
+ return pid() ? pid()->dwProcessId : 0;
+#else
+ return pid();
+#endif
+}