forked from qt-creator/qt-creator
Valgrind: Simplify device setup and handling
Make isLocal() less intrusively used and correct. Use the stored device more often, also handle errors more quickly. Change-Id: I146d1f5788ea79d0a9d7b058c81908d451cf00d0 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -93,10 +93,7 @@ void CallgrindController::run(Option option)
|
||||
}
|
||||
QTC_ASSERT(m_valgrindProc, return);
|
||||
|
||||
QSsh::SshConnection *connection = m_valgrindProc->connection();
|
||||
m_process = new ValgrindProcess(
|
||||
connection ? connection->connectionParameters() : QSsh::SshConnectionParameters(),
|
||||
connection, this);
|
||||
m_process = new ValgrindProcess(m_valgrindProc->device(), this);
|
||||
|
||||
connect(m_process, &ValgrindProcess::finished,
|
||||
this, &CallgrindController::processFinished);
|
||||
|
||||
Reference in New Issue
Block a user