Maemo: Handle missing specification for remote executable.

Reviewed-by: kh1
This commit is contained in:
ck
2010-07-08 12:17:07 +02:00
parent 05c554020a
commit 70e801bb09
3 changed files with 14 additions and 3 deletions

View File

@@ -202,7 +202,7 @@ void AbstractMaemoRunControl::deploy()
m_sshDeployer->start();
} else {
m_progress.reportFinished();
startExecution();
startExecutionIfPossible();
}
}
@@ -248,6 +248,16 @@ bool AbstractMaemoRunControl::isCleaning() const
return m_initialCleaner && m_initialCleaner->isRunning();
}
void AbstractMaemoRunControl::startExecutionIfPossible()
{
if (executableFilePathOnTarget().isEmpty()) {
handleError(tr("Cannot run: No remote executable set."));
emit finished();
} else {
startExecution();
}
}
void AbstractMaemoRunControl::startExecution()
{
m_sshRunner.reset(new MaemoSshRunner(m_devConfig.server, remoteCall()));
@@ -315,7 +325,7 @@ void AbstractMaemoRunControl::handleDeployThreadFinished()
emit finished();
} else {
m_progress.reportFinished();
startExecution();
startExecutionIfPossible();
}
}