forked from qt-creator/qt-creator
Android: Update devices list after creating an AVD
Ensure that a freshly created AVD is properly listed and is usable. By forcing a AndroidDeviceManager::updateAvdsList() after successful creation. Fixes: QTCREATORBUG-27804 Change-Id: I1ef0fb23d2c13b99d285f07505189f37929f4ed7 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
@@ -117,8 +117,10 @@ int AvdDialog::exec()
|
||||
loop.exec(QEventLoop::ExcludeUserInputEvents);
|
||||
|
||||
const QFuture<CreateAvdInfo> future = createAvdFutureWatcher.future();
|
||||
if (future.isResultReadyAt(0))
|
||||
if (future.isResultReadyAt(0)) {
|
||||
m_createdAvdInfo = future.result();
|
||||
AndroidDeviceManager::instance()->updateAvdsList();
|
||||
}
|
||||
}
|
||||
|
||||
return execResult;
|
||||
|
Reference in New Issue
Block a user