diff options
author | BogDan Vatra <[email protected]> | 2012-12-18 14:25:07 +0200 |
---|---|---|
committer | Daniel Teske <[email protected]> | 2013-01-21 11:25:08 +0100 |
commit | 57738988f2dda03544ff60cac10372b933285db1 (patch) | |
tree | 165ce66cd983096153a5bb9e5112b464172d83ab /src/plugins/android/androidrunner.cpp | |
parent | f504ce8b8e535e8a122e7b30af5597929945e78d (diff) |
Remove useless warning dialog.
Redirect the errors to the application output window.
Change-Id: I927fae72a53314d0200ffbd13c68900d15259cf9
Reviewed-by: Daniel Teske <[email protected]>
Diffstat (limited to 'src/plugins/android/androidrunner.cpp')
-rw-r--r-- | src/plugins/android/androidrunner.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/plugins/android/androidrunner.cpp b/src/plugins/android/androidrunner.cpp index ac977d052e4..e106f0d99bf 100644 --- a/src/plugins/android/androidrunner.cpp +++ b/src/plugins/android/androidrunner.cpp @@ -69,7 +69,7 @@ AndroidRunner::AndroidRunner(QObject *parent, AndroidRunConfiguration *runConfig AndroidRunner::~AndroidRunner() { - stop(false); + stop(); } void AndroidRunner::checkPID() @@ -251,24 +251,22 @@ void AndroidRunner::startLogcat() emit remoteProcessStarted(5039); } -void AndroidRunner::stop(bool async) +void AndroidRunner::stop() { QMutexLocker locker(&m_mutex); m_adbLogcatProcess.kill(); - m_adbLogcatProcess.waitForFinished(-1); m_checkPIDTimer.stop(); - if (m_processPID == -1) + if (m_processPID == -1) { + m_adbLogcatProcess.kill(); return; // don't emit another signal - if (async) - QtConcurrent::run(this, &AndroidRunner::asyncStop); - else - asyncStop(); + } } void AndroidRunner::asyncStop() { killPID(); - emit remoteProcessFinished(tr("\n\n'%1' killed.").arg(m_packageName)); + m_adbLogcatProcess.kill(); + m_adbLogcatProcess.waitForFinished(-1); } void AndroidRunner::logcatReadStandardError() |