diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-01-07 06:40:26 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-01-07 06:40:26 +0100 |
commit | 59e6b4ed55403dad42b73d526683fa5e5698e3a8 (patch) | |
tree | 1c2ff59df21eb3ddf6822c5e93649e763f2eb1b3 /logic/launch | |
parent | 5ff9f90ce97b1986ea19bffe28426ade7a85d54b (diff) | |
download | MultiMC-59e6b4ed55403dad42b73d526683fa5e5698e3a8.tar MultiMC-59e6b4ed55403dad42b73d526683fa5e5698e3a8.tar.gz MultiMC-59e6b4ed55403dad42b73d526683fa5e5698e3a8.tar.lz MultiMC-59e6b4ed55403dad42b73d526683fa5e5698e3a8.tar.xz MultiMC-59e6b4ed55403dad42b73d526683fa5e5698e3a8.zip |
GH-1379 fix build with Qt 5.2.1 on ubuntu64
Diffstat (limited to 'logic/launch')
-rw-r--r-- | logic/launch/LoggedProcess.cpp | 9 | ||||
-rw-r--r-- | logic/launch/LoggedProcess.h | 1 |
2 files changed, 10 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 +} diff --git a/logic/launch/LoggedProcess.h b/logic/launch/LoggedProcess.h index edbc78d0..baa53d79 100644 --- a/logic/launch/LoggedProcess.h +++ b/logic/launch/LoggedProcess.h @@ -43,6 +43,7 @@ public: State state() const; int exitCode() const; + qint64 processId() const; signals: void log(QStringList lines, MessageLevel::Enum level); |