Maemo: Toolchain for remote mounter needs to be dynamic.

This commit is contained in:
Christian Kandeler
2010-08-23 15:54:35 +02:00
parent c0a922f742
commit 14d7f6b661
4 changed files with 10 additions and 13 deletions

View File

@@ -54,7 +54,7 @@ namespace Internal {
MaemoSshRunner::MaemoSshRunner(QObject *parent,
MaemoRunConfiguration *runConfig, bool debugging)
: QObject(parent), m_runConfig(runConfig),
m_mounter(new MaemoRemoteMounter(this, runConfig->toolchain())),
m_mounter(new MaemoRemoteMounter(this)),
m_devConfig(runConfig->deviceConfig()), m_shuttingDown(false),
m_debugging(debugging)
{
@@ -191,6 +191,7 @@ void MaemoSshRunner::handleUnmounted()
MaemoPortList portList = m_devConfig.freePorts();
if (m_debugging && !m_runConfig->useRemoteGdb())
portList.getNext(); // One has already been used for gdbserver.
m_mounter->setToolchain(m_runConfig->toolchain());
m_mounter->setPortList(portList);
const MaemoRemoteMountsModel * const remoteMounts
= m_runConfig->remoteMounts();