OSDN Git Service

Force the action to be really disabled.
authorkh1 <qt-info@nokia.com>
Tue, 27 Apr 2010 14:28:58 +0000 (16:28 +0200)
committerkh1 <qt-info@nokia.com>
Wed, 28 Apr 2010 13:07:05 +0000 (15:07 +0200)
src/plugins/qt4projectmanager/qt-maemo/maemomanager.cpp

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