Commit 5e1d6fcf authored by Daniel Teske's avatar Daniel Teske

Android Settings: Fix crash on clicking remove avd twice

Task-number: QTCREATORBUG-10848
Change-Id: Iea0a815530f8a07c07f4b1562fc7189aadc85ab8
Reviewed-by: default avatarBogDan Vatra <bogdan@kde.org>
parent 7e8f2687
......@@ -404,12 +404,14 @@ void AndroidSettingsWidget::addAVD()
{
AndroidConfigurations::instance().createAVD();
m_AVDModel.setAvdList(AndroidConfigurations::instance().androidVirtualDevices());
avdActivated(m_ui->AVDTableView->currentIndex());
}
void AndroidSettingsWidget::removeAVD()
{
AndroidConfigurations::instance().removeAVD(m_AVDModel.avdName(m_ui->AVDTableView->currentIndex()));
m_AVDModel.setAvdList(AndroidConfigurations::instance().androidVirtualDevices());
avdActivated(m_ui->AVDTableView->currentIndex());
}
void AndroidSettingsWidget::startAVD()
......
Markdown is supported
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