Commit 0a4faa82 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

ProjectExplorer: Remove one #ifdef

Use Utils::qPidToPid instead of rewriting it.

Change-Id: Iab95373aae8ae406af4e54f3804b7e016b4834f9
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 3000b3b9
......@@ -184,20 +184,13 @@ bool ApplicationLauncher::isRunning() const
qint64 ApplicationLauncher::applicationPID() const
{
qint64 result = 0;
if (!isRunning())
return result;
return 0;
if (d->m_currentMode == Console) {
result = d->m_consoleProcess.applicationPID();
} else {
#ifdef Q_OS_WIN
result = (qint64)d->m_guiProcess.pid()->dwProcessId;
#else
result = (qint64)d->m_guiProcess.pid();
#endif
}
return result;
if (d->m_currentMode == Console)
return d->m_consoleProcess.applicationPID();
else
return Utils::qPidToPid(d->m_guiProcess.pid());
}
void ApplicationLauncher::guiProcessError()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment