forked from qt-creator/qt-creator
SSH: Add parent object to SshConnection constructor.
There's no mandatory use of shared pointers anymore, so client code should be able to make use of QObject-based ownership. Change-Id: I2344ca66a40c310ef739b32502eb8471da98c03a Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -167,8 +167,6 @@ RemoteValgrindProcess::RemoteValgrindProcess(QSsh::SshConnection *connection, QO
|
||||
|
||||
RemoteValgrindProcess::~RemoteValgrindProcess()
|
||||
{
|
||||
if (m_connection)
|
||||
m_connection->deleteLater();
|
||||
}
|
||||
|
||||
bool RemoteValgrindProcess::isRunning() const
|
||||
@@ -186,7 +184,7 @@ void RemoteValgrindProcess::run(const QString &valgrindExecutable, const QString
|
||||
|
||||
// connect to host and wait for connection
|
||||
if (!m_connection)
|
||||
m_connection = new QSsh::SshConnection(m_params);
|
||||
m_connection = new QSsh::SshConnection(m_params, this);
|
||||
|
||||
if (m_connection->state() != QSsh::SshConnection::Connected) {
|
||||
connect(m_connection, SIGNAL(connected()), this, SLOT(connected()));
|
||||
|
||||
Reference in New Issue
Block a user