Force the action to be really disabled.

This commit is contained in:
kh1
2010-04-27 16:28:58 +02:00
parent 125d416ab6
commit 2c64aa0571

View File

@@ -157,6 +157,7 @@ MaemoManager::addQemuSimulatorStarter(Project *project)
m_qemuCommand = actionManager->registerAction(action, "MaemoEmulator", m_qemuCommand = actionManager->registerAction(action, "MaemoEmulator",
QList<int>() << Core::Constants::C_GLOBAL_ID); QList<int>() << Core::Constants::C_GLOBAL_ID);
modeManager->addAction(m_qemuCommand, 1); modeManager->addAction(m_qemuCommand, 1);
action->setEnabled(false);
m_qemuCommand->action()->setEnabled(false); m_qemuCommand->action()->setEnabled(false);
m_qemuCommand->setAttribute(Core::Command::CA_UpdateText); m_qemuCommand->setAttribute(Core::Command::CA_UpdateText);
m_qemuCommand->setAttribute(Core::Command::CA_UpdateIcon); m_qemuCommand->setAttribute(Core::Command::CA_UpdateIcon);