RemoteLinux: Fix fetching of remote environment

A QLatin1String isn't a StandardRunnable.
This fixes a regression introduced in 58be2708a.

Change-Id: I6b3bb337227631011a6bc26c938945bb0e912e62
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
hjk
2016-04-05 08:11:42 +02:00
parent eb172fbbd4
commit 24660c23e3
2 changed files with 9 additions and 2 deletions

View File

@@ -80,7 +80,11 @@ SshDeviceProcess::~SshDeviceProcess()
void SshDeviceProcess::start(const Runnable &runnable)
{
QTC_ASSERT(d->state == SshDeviceProcessPrivate::Inactive, return);
QTC_ASSERT(runnable.is<StandardRunnable>(), return);
if (!runnable.is<StandardRunnable>()) {
d->errorMessage = tr("Internal error");
error(QProcess::FailedToStart);
return;
}
d->setState(SshDeviceProcessPrivate::Connecting);
d->errorMessage.clear();