Commit c39d7cf1 authored by Pawel Polanski's avatar Pawel Polanski
Browse files

If no Symbian device is connected a Build Issue is generated

parent 69a5e6ca
...@@ -211,20 +211,29 @@ bool S60DeployStep::processPackageName(QString &errorMessage) ...@@ -211,20 +211,29 @@ bool S60DeployStep::processPackageName(QString &errorMessage)
void S60DeployStep::start() void S60DeployStep::start()
{ {
QString errorMessage;
if (m_serialPortName.isEmpty()) { if (m_serialPortName.isEmpty()) {
appendMessage(tr("No device is connected. Please connect a device and try again."), true); errorMessage = tr("No device is connected. Please connect a device and try again.");
appendMessage(errorMessage, true);
emit addTask(ProjectExplorer::Task(ProjectExplorer::Task::Error,
errorMessage,
QString(), -1,
ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM));
emit finished(); emit finished();
return; return;
} }
QString errorMessage;
// make sure we have the right name of the sis package // make sure we have the right name of the sis package
if (processPackageName(errorMessage)) { if (processPackageName(errorMessage)) {
startDeployment(); startDeployment();
} else { } else {
errorMessage = tr("Failed to find package %1").arg(errorMessage); errorMessage = tr("Failed to find package %1").arg(errorMessage);
appendMessage(errorMessage, true); appendMessage(errorMessage, true);
emit addTask(ProjectExplorer::Task(ProjectExplorer::Task::Error,
errorMessage,
QString(), -1,
ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM));
stop(); stop();
emit finished(); emit finished();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment