Explorar el Código

Prevent editor from getting copy/paste events if deactivated

Ivan Safrin hace 12 años
padre
commit
1cca83a2c1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      IDE/Contents/Source/PolycodeEditor.cpp

+ 1 - 1
IDE/Contents/Source/PolycodeEditor.cpp

@@ -64,7 +64,7 @@ void PolycodeEditor::setHasChanges(bool newVal) {
 }
 
 void PolycodeEditor::handleEvent(Event *event) {
-	if(event->getDispatcher() == CoreServices::getInstance()->getCore()) {
+	if(event->getDispatcher() == CoreServices::getInstance()->getCore() && enabled) {
 		switch(event->getEventCode()) {
 
 			// Only copypaste of more complex IDE entities is handled here.