@@ -762,26 +762,20 @@ void mbServerUi::menuSlotDeviceMemoryExport()
762762
763763void mbServerUi::menuSlotDeviceScriptInit ()
764764{
765- if (core ()->isRunning ())
766- return ;
767765 mbServerDevice *device = m_deviceManager->activeDevice ();
768766 if (device)
769767 windowManager ()->showDeviceScript (device, mbServerDevice::Script_Init);
770768}
771769
772770void mbServerUi::menuSlotDeviceScriptLoop ()
773771{
774- if (core ()->isRunning ())
775- return ;
776772 mbServerDevice *device = m_deviceManager->activeDevice ();
777773 if (device)
778774 windowManager ()->showDeviceScript (device, mbServerDevice::Script_Loop);
779775}
780776
781777void mbServerUi::menuSlotDeviceScriptFinal ()
782778{
783- if (core ()->isRunning ())
784- return ;
785779 mbServerDevice *device = m_deviceManager->activeDevice ();
786780 if (device)
787781 windowManager ()->showDeviceScript (device, mbServerDevice::Script_Final);
@@ -915,8 +909,6 @@ void mbServerUi::menuSlotSimActionExport()
915909
916910void mbServerUi::menuSlotScriptModuleNew ()
917911{
918- if (core ()->isRunning ())
919- return ;
920912 mbServerProject *project = core ()->project ();
921913 if (project)
922914 {
@@ -943,8 +935,6 @@ void mbServerUi::menuSlotScriptModuleOpen()
943935
944936void mbServerUi::menuSlotScriptModuleDelete ()
945937{
946- if (core ()->isRunning ())
947- return ;
948938 mbServerProject *project = core ()->project ();
949939 if (project)
950940 {
@@ -957,8 +947,6 @@ void mbServerUi::menuSlotScriptModuleDelete()
957947
958948void mbServerUi::menuSlotScriptModuleEditParams ()
959949{
960- if (core ()->isRunning ())
961- return ;
962950 QList<mbServerScriptModule*> modules = m_scriptModulesUi->selectedItems ();
963951 if (!modules.count ())
964952 return ;
@@ -973,8 +961,6 @@ void mbServerUi::menuSlotScriptModuleEditParams()
973961
974962void mbServerUi::menuSlotScriptModuleImport ()
975963{
976- if (core ()->isRunning ())
977- return ;
978964 mbServerProject *project = core ()->project ();
979965 if (project)
980966 {
0 commit comments