Commit 38607c49 authored by ck's avatar ck
Browse files

Maemo: Display simulator information only for valid run configs.

Reviewed-by: kh1
parent 23ef4f9c
...@@ -143,7 +143,8 @@ void MaemoRunConfigurationWidget::deviceConfigurationChanged(const QString &name ...@@ -143,7 +143,8 @@ void MaemoRunConfigurationWidget::deviceConfigurationChanged(const QString &name
void MaemoRunConfigurationWidget::setSimInfoVisible(const MaemoDeviceConfig &devConf) 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_simNameLabel->setVisible(isSimulator);
m_simValueLabel->setVisible(isSimulator); m_simValueLabel->setVisible(isSimulator);
} }
......
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