forked from qt-creator/qt-creator
SSH: Fix SshConnection::error signal connections.
I recently changed the signal argument, but forgot to update some of the points of use. Reviewed-by: kh1
This commit is contained in:
@@ -79,7 +79,7 @@ void MaemoConfigTestDialog::startConfigTest()
|
|||||||
m_connection = SshConnection::create();
|
m_connection = SshConnection::create();
|
||||||
connect(m_connection.data(), SIGNAL(connected()), this,
|
connect(m_connection.data(), SIGNAL(connected()), this,
|
||||||
SLOT(handleConnected()));
|
SLOT(handleConnected()));
|
||||||
connect(m_connection.data(), SIGNAL(error(SshError)), this,
|
connect(m_connection.data(), SIGNAL(error(Core::SshError)), this,
|
||||||
SLOT(handleConnectionError()));
|
SLOT(handleConnectionError()));
|
||||||
m_connection->connectToHost(m_config.server);
|
m_connection->connectToHost(m_config.server);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ void MaemoDeviceEnvReader::start()
|
|||||||
|
|
||||||
connect(m_connection.data(), SIGNAL(connected()), this,
|
connect(m_connection.data(), SIGNAL(connected()), this,
|
||||||
SLOT(executeRemoteCall()));
|
SLOT(executeRemoteCall()));
|
||||||
connect(m_connection.data(), SIGNAL(error(SshError)), this,
|
connect(m_connection.data(), SIGNAL(error(Core::SshError)), this,
|
||||||
SLOT(handleConnectionFailure()));
|
SLOT(handleConnectionFailure()));
|
||||||
|
|
||||||
if (reuse)
|
if (reuse)
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ void MaemoSettingsWidget::deployKey()
|
|||||||
m_connection = SshConnection::create();
|
m_connection = SshConnection::create();
|
||||||
connect(m_connection.data(), SIGNAL(connected()), this,
|
connect(m_connection.data(), SIGNAL(connected()), this,
|
||||||
SLOT(handleConnected()));
|
SLOT(handleConnected()));
|
||||||
connect(m_connection.data(), SIGNAL(error(SshError)), this,
|
connect(m_connection.data(), SIGNAL(error(Core::SshError)), this,
|
||||||
SLOT(handleConnectionFailure()));
|
SLOT(handleConnectionFailure()));
|
||||||
m_connection->connectToHost(currentConfig().server);
|
m_connection->connectToHost(currentConfig().server);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ private slots:
|
|||||||
qApp->quit();
|
qApp->quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
void handleError(SshError error)
|
void handleError(Core::SshError error)
|
||||||
{
|
{
|
||||||
if (m_testSet.isEmpty()) {
|
if (m_testSet.isEmpty()) {
|
||||||
qDebug("Error: Received error %d, but no test was running.", error);
|
qDebug("Error: Received error %d, but no test was running.", error);
|
||||||
@@ -140,8 +140,8 @@ private:
|
|||||||
SLOT(handleDisconnected()));
|
SLOT(handleDisconnected()));
|
||||||
connect(m_connection.data(), SIGNAL(dataAvailable(QString)), this,
|
connect(m_connection.data(), SIGNAL(dataAvailable(QString)), this,
|
||||||
SLOT(handleDataAvailable(QString)));
|
SLOT(handleDataAvailable(QString)));
|
||||||
connect(m_connection.data(), SIGNAL(error(SshError)), this,
|
connect(m_connection.data(), SIGNAL(error(Core::SshError)), this,
|
||||||
SLOT(handleError(SshError)));
|
SLOT(handleError(Core::SshError)));
|
||||||
const TestItem &nextItem = m_testSet.first();
|
const TestItem &nextItem = m_testSet.first();
|
||||||
m_timeoutTimer.stop();
|
m_timeoutTimer.stop();
|
||||||
m_timeoutTimer.setInterval(qMax(10000, nextItem.params.timeout * 1000));
|
m_timeoutTimer.setInterval(qMax(10000, nextItem.params.timeout * 1000));
|
||||||
|
|||||||
Reference in New Issue
Block a user