- fixed Edit -> Copy as Geom function handler to work for Excellon objects, too

- made sure that the mouse pointer is restored to default on Editor exit
This commit is contained in:
Marius Stanciu
2019-04-25 20:42:56 +03:00
parent ddc2f2d873
commit 4c275b25af
7 changed files with 133 additions and 41 deletions

View File

@@ -1653,6 +1653,11 @@ class FlatCAMExcEditor(QtCore.QObject):
self.drills_frame.show()
def deactivate(self):
try:
QtGui.QGuiApplication.restoreOverrideCursor()
except:
pass
# adjust the status of the menu entries related to the editor
self.app.ui.menueditedit.setDisabled(False)
self.app.ui.menueditok.setDisabled(True)

View File

@@ -2979,6 +2979,11 @@ class FlatCAMGeoEditor(QtCore.QObject):
self.editor_active = True
def deactivate(self):
try:
QtGui.QGuiApplication.restoreOverrideCursor()
except:
pass
# adjust the status of the menu entries related to the editor
self.app.ui.menueditedit.setDisabled(False)
self.app.ui.menueditok.setDisabled(True)

View File

@@ -2690,6 +2690,11 @@ class FlatCAMGrbEditor(QtCore.QObject):
self.editor_active = True
def deactivate_grb_editor(self):
try:
QtGui.QGuiApplication.restoreOverrideCursor()
except:
pass
# adjust the status of the menu entries related to the editor
self.app.ui.menueditedit.setDisabled(False)
self.app.ui.menueditok.setDisabled(True)