diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemorunconfigurationwidget.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemorunconfigurationwidget.cpp index 39ec400ada4003c0f154cba341130ee684654efa..4d254aa768c162094adea2eeb4d605d405836ef1 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); }