Android: Use Utils::runAsync

Change-Id: I632d165be4a7e1f35e6e3d7bf401d40817b17223
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Eike Ziller
2016-02-05 15:06:15 +01:00
parent c7d906214b
commit 8b4f14a8ad
4 changed files with 9 additions and 8 deletions

View File

@@ -35,6 +35,7 @@
#include <utils/environment.h>
#include <utils/hostosinfo.h>
#include <utils/pathchooser.h>
#include <utils/runextensions.h>
#include <projectexplorer/toolchainmanager.h>
#include <projectexplorer/kitmanager.h>
#include <projectexplorer/kitinformation.h>
@@ -52,7 +53,6 @@
#include <QMessageBox>
#include <QModelIndex>
#include <QtCore/QUrl>
#include <QtConcurrentRun>
namespace Android {
namespace Internal {
@@ -293,7 +293,7 @@ void AndroidSettingsWidget::check(AndroidSettingsWidget::Mode mode)
}
if (!gdbPaths.isEmpty()) {
m_checkGdbWatcher.setFuture(QtConcurrent::run(&checkGdbForBrokenPython, gdbPaths));
m_checkGdbWatcher.setFuture(Utils::runAsync(&checkGdbForBrokenPython, gdbPaths));
m_gdbCheckPaths = gdbPaths;
}