From 38607c49aeed9e70375153cadebf199328a862be Mon Sep 17 00:00:00 2001 From: ck <qt-info@nokia.com> Date: Mon, 12 Apr 2010 12:22:16 +0200 Subject: [PATCH] Maemo: Display simulator information only for valid run configs. Reviewed-by: kh1 --- .../qt4projectmanager/qt-maemo/maemorunconfigurationwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemorunconfigurationwidget.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemorunconfigurationwidget.cpp index 39ec400ada4..4d254aa768c 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemorunconfigurationwidget.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemorunconfigurationwidget.cpp @@ -143,7 +143,8 @@ void MaemoRunConfigurationWidget::deviceConfigurationChanged(const QString &name void MaemoRunConfigurationWidget::setSimInfoVisible(const MaemoDeviceConfig &devConf) { - const bool isSimulator = devConf.type == MaemoDeviceConfig::Simulator; + const bool isSimulator + = devConf.isValid() && devConf.type == MaemoDeviceConfig::Simulator; m_simNameLabel->setVisible(isSimulator); m_simValueLabel->setVisible(isSimulator); } -- GitLab