Cannot connect to the TRK in some specyfic cases - fixed

This commit is contained in:
Pawel Polanski
2010-08-05 15:19:15 +02:00
parent 8e2c274d53
commit 053cf85569

View File

@@ -127,6 +127,12 @@ bool S60DeployStep::init()
setDisplayName(tr("Deploy", "Qt4 DeployStep display name."));
QString message;
if (m_launcher) {
trk::Launcher::releaseToDeviceManager(m_launcher);
delete m_launcher;
m_launcher = 0;
}
m_launcher = trk::Launcher::acquireFromDeviceManager(m_serialPortName, this, &message);
if (!message.isEmpty() || !m_launcher) {
if (m_launcher)