Commit ffd5d69e authored by Pawel Polanski's avatar Pawel Polanski
Browse files

Symbian: fix in the Debugger's output texts

parent 9e0a51bf
......@@ -530,7 +530,9 @@ void S60DeployStep::initFileInstallation()
{
QTC_ASSERT(m_currentFileIndex < m_signedPackages.count(), return);
QTC_ASSERT(m_currentFileIndex >= 0, return);
QTC_ASSERT(m_codaDevice, return);
if (!m_codaDevice)
return;
QString packageName(QFileInfo(m_signedPackages.at(m_currentFileIndex)).fileName());
QString remoteFileLocation = QString::fromLatin1("%1:\\Data\\%2").arg(m_installationDrive).arg(packageName);
......@@ -602,7 +604,8 @@ void S60DeployStep::handleSymbianInstall(const Coda::CodaCommandResult &result)
void S60DeployStep::putSendNextChunk()
{
QTC_ASSERT(m_codaDevice, return);
if (!m_codaDevice)
return;
// Read and send off next chunk
const quint64 pos = m_putFile->pos();
......
......@@ -516,6 +516,14 @@ bool S60DeviceDebugRunControl::promptToStop(bool *) const
return Debugger::DebuggerRunControl::promptToStop(0);
}
void S60DeviceDebugRunControl::appendMessage(const QString &msg, ProjectExplorer::OutputFormat format, bool addNewLine)
{
if (addNewLine)
RunControl::appendMessage(msg + '\n', format);
else
RunControl::appendMessage(msg, format);
}
S60DeviceDebugRunControlFactory::S60DeviceDebugRunControlFactory(QObject *parent) :
IRunControlFactory(parent)
{
......
......@@ -140,6 +140,7 @@ public:
const QPair<Debugger::DebuggerEngineType, Debugger::DebuggerEngineType> &masterSlaveEngineTypes);
virtual void start();
virtual bool promptToStop(bool *optionalPrompt = 0) const;
virtual void appendMessage(const QString &msg, ProjectExplorer::OutputFormat format, bool addNewLine=true);
};
class S60DeviceDebugRunControlFactory : public ProjectExplorer::IRunControlFactory
......
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