forked from qt-creator/qt-creator
RemoteLinux: It's not a fatal error when ports gathering fails.
Change-Id: If803e1acaaa8164a5177fa5ca227516cc06c577c Reviewed-on: http://codereview.qt.nokia.com/4364 Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -333,8 +333,14 @@ void AbstractRemoteLinuxApplicationRunner::emitError(const QString &errorMsg, bo
|
||||
|
||||
void AbstractRemoteLinuxApplicationRunner::handlePortsGathererError(const QString &errorMsg)
|
||||
{
|
||||
if (m_d->state != Inactive)
|
||||
emitError(errorMsg);
|
||||
if (m_d->state != Inactive) {
|
||||
if (connection()->errorState() != SshNoError) {
|
||||
emitError(errorMsg);
|
||||
} else {
|
||||
emit reportProgress(tr("Gathering ports failed: %1\nContinuing anyway.").arg(errorMsg));
|
||||
handleUsedPortsAvailable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void AbstractRemoteLinuxApplicationRunner::handleUsedPortsAvailable()
|
||||
|
||||
Reference in New Issue
Block a user