forked from qt-creator/qt-creator
Maemo: Add missing initialization.
Task-number: QTCREATORBUG-1461 (part 1)
This commit is contained in:
@@ -104,8 +104,7 @@ bool MaemoSshRunner::runInternal()
|
|||||||
createConnection();
|
createConnection();
|
||||||
connect(m_connection.data(), SIGNAL(remoteOutputAvailable()),
|
connect(m_connection.data(), SIGNAL(remoteOutputAvailable()),
|
||||||
this, SLOT(handleRemoteOutput()));
|
this, SLOT(handleRemoteOutput()));
|
||||||
m_endMarkerCount = 0;
|
initState();
|
||||||
m_promptEncountered = false;
|
|
||||||
if (!m_connection->start())
|
if (!m_connection->start())
|
||||||
return false;
|
return false;
|
||||||
if (stopRequested())
|
if (stopRequested())
|
||||||
@@ -115,6 +114,13 @@ bool MaemoSshRunner::runInternal()
|
|||||||
return !m_connection->hasError();
|
return !m_connection->hasError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MaemoSshRunner::initState()
|
||||||
|
{
|
||||||
|
m_endMarkerCount = 0;
|
||||||
|
m_promptEncountered = false;
|
||||||
|
m_potentialEndMarkerPrefix.clear();
|
||||||
|
}
|
||||||
|
|
||||||
void MaemoSshRunner::handleRemoteOutput()
|
void MaemoSshRunner::handleRemoteOutput()
|
||||||
{
|
{
|
||||||
const QByteArray output
|
const QByteArray output
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ signals:
|
|||||||
private:
|
private:
|
||||||
virtual bool runInternal();
|
virtual bool runInternal();
|
||||||
Q_SLOT void handleRemoteOutput();
|
Q_SLOT void handleRemoteOutput();
|
||||||
|
void initState();
|
||||||
|
|
||||||
static const QByteArray EndMarker;
|
static const QByteArray EndMarker;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user