forked from qt-creator/qt-creator
SSH: Don't allow connectToHost() while already connecting/connected.
Also fix callers potentially violating this policy. Change-Id: I630f1c544885df93a81e217e792363c0c2314108 Reviewed-on: http://codereview.qt.nokia.com/1186 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -98,7 +98,8 @@ void RemoteGdbProcess::realStart(const QString &cmd, const QStringList &args,
|
||||
handleConnected();
|
||||
} else {
|
||||
connect(m_conn.data(), SIGNAL(connected()), this, SLOT(handleConnected()));
|
||||
m_conn->connectToHost();
|
||||
if (m_conn->state() == SshConnection::Unconnected)
|
||||
m_conn->connectToHost();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user