forked from qt-creator/qt-creator
S60/Trk: Make the port a property of TrkDevice.
Associate the port with the device instead of passing it to open for better handling.
This commit is contained in:
@@ -1730,12 +1730,13 @@ void TrkGdbAdapter::startAdapter()
|
||||
setState(AdapterStarting);
|
||||
debugMessage(_("TRYING TO START ADAPTER"));
|
||||
logMessage(QLatin1String("### Starting TrkGdbAdapter"));
|
||||
m_trkDevice->setPort(effectiveTrkDevice());
|
||||
m_trkDevice->setSerialFrame(effectiveTrkDeviceType() != TrkOptions::BlueTooth);
|
||||
// Prompt the user to start communication
|
||||
QString message;
|
||||
|
||||
const trk::PromptStartCommunicationResult src =
|
||||
S60DebuggerBluetoothStarter::startCommunication(m_trkDevice,
|
||||
effectiveTrkDevice(),
|
||||
effectiveTrkDeviceType(),
|
||||
0, &message);
|
||||
switch (src) {
|
||||
|
||||
Reference in New Issue
Block a user