Commit d1cd1a49 authored by Fawzi Mohamed's avatar Fawzi Mohamed
Browse files

ios: correctly replace cryptic Locked message when deploying



Change-Id: I19e33d5c7e35f9d76c81469d3772bc800ce1760b
Reviewed-by: default avatarRichard Moe Gustavsen <richard.gustavsen@digia.com>
parent 1fd6a4a8
...@@ -217,11 +217,11 @@ void IosRunner::handleErrorMsg(IosToolHandler *handler, const QString &msg) ...@@ -217,11 +217,11 @@ void IosRunner::handleErrorMsg(IosToolHandler *handler, const QString &msg)
TaskHub::addTask(Task::Warning, TaskHub::addTask(Task::Warning,
tr("Run failed. The settings in the Organizer window of Xcode might be incorrect."), tr("Run failed. The settings in the Organizer window of Xcode might be incorrect."),
ProjectExplorer::Constants::TASK_CATEGORY_DEPLOYMENT); ProjectExplorer::Constants::TASK_CATEGORY_DEPLOYMENT);
} else if (msg.contains(lockedErr)) { } else if (res.contains(lockedErr)) {
QString message = tr("The device is locked, please unlock."); QString message = tr("The device is locked, please unlock.");
TaskHub::addTask(Task::Error, message, TaskHub::addTask(Task::Error, message,
ProjectExplorer::Constants::TASK_CATEGORY_DEPLOYMENT); ProjectExplorer::Constants::TASK_CATEGORY_DEPLOYMENT);
res.replace(lockedErr, msg); res.replace(lockedErr, message);
} }
QRegExp qmlPortRe(QLatin1String("QML Debugger: Waiting for connection on port ([0-9]+)...")); QRegExp qmlPortRe(QLatin1String("QML Debugger: Waiting for connection on port ([0-9]+)..."));
int index = qmlPortRe.indexIn(msg); int index = qmlPortRe.indexIn(msg);
......
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