forked from qt-creator/qt-creator
ProjectExplorer: Remove RunControl::bringApplicationToForeground
... and replace it by direct uses of ProcessHandle::activate(). Change-Id: I7beffba7bfbeff72a81b8699ff54a311a74ce1a3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -292,12 +292,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void raiseApplication()
|
||||
{
|
||||
QTC_ASSERT(runControl(), return);
|
||||
runControl()->bringApplicationToForeground();
|
||||
}
|
||||
|
||||
void scheduleResetLocation()
|
||||
{
|
||||
m_stackHandler.scheduleResetLocation();
|
||||
@@ -1323,7 +1317,7 @@ void DebuggerEngine::notifyInferiorPid(const ProcessHandle &pid)
|
||||
showMessage(tr("Taking notice of pid %1").arg(pid.pid()));
|
||||
DebuggerStartMode sm = runParameters().startMode;
|
||||
if (sm == StartInternal || sm == StartExternal || sm == AttachExternal)
|
||||
QTimer::singleShot(0, d, &DebuggerEnginePrivate::raiseApplication);
|
||||
d->m_inferiorPid.activate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user