Commit d0cbac90 authored by ck's avatar ck
Browse files

Maemo: Make sure deploying stops when build step thread finishes.

This is important for the "canceled" case and doesn't hurt otherwise.
parent 3fe09f81
......@@ -88,6 +88,7 @@ void MaemoDeployStep::run(QFutureInterface<bool> &fi)
QTimer::singleShot(0, this, SLOT(start()));
MaemoDeployEventHandler eventHandler(this, fi);
connect (&eventHandler, SIGNAL(destroyed()), this, SLOT(stop()));
BuildStepConfigWidget *MaemoDeployStep::createConfigWidget()
......@@ -176,8 +177,8 @@ void MaemoDeployStep::stop()
} else if (!m_uploadsInProgress.isEmpty() || !m_linksInProgress.isEmpty()) {
disconnect(, 0, this, 0);
if (m_connection)
disconnect(, 0, this, 0);
......@@ -74,6 +74,7 @@ signals:
private slots:
void start();
void stop();
void handleConnected();
void handleConnectionFailure();
void handleSftpChannelInitialized();
......@@ -95,7 +96,6 @@ private:
virtual bool fromMap(const QVariantMap &map);
void ctor();
void stop();
void raiseError(const QString &error);
void writeOutput(const QString &text,
const QTextCharFormat &format = QTextCharFormat());
Supports Markdown
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