Commit 3e002e6d authored by Pawel Polanski's avatar Pawel Polanski
Browse files

If no Symbian device is connected to USB port an appropriate message is shown.

Task-Number: QTCREATORBUG-3157

Reviewed-by: Tobias Hunger
parent b2849c30
......@@ -1022,6 +1022,9 @@ Launcher *Launcher::acquireFromDeviceManager(const QString &serverName,
SymbianUtils::SymbianDeviceManager *sdm = SymbianUtils::SymbianDeviceManager::instance();
const QSharedPointer<trk::TrkDevice> device = sdm->acquireDevice(serverName);
if (device.isNull()) {
if (serverName.isEmpty())
*errorMessage = tr("No device is connected. Please connect a device and try again.");
*errorMessage = tr("Unable to acquire a device for port '%1'. It appears to be in use.").arg(serverName);
return 0;
Supports Markdown
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