- fixing issue #254

- replaced (as per advice from @jpcgt) the lines with app.info call
to using a signal which is safe to use in a threaded environment,
app.inform.emit()
This commit is contained in:
Marius Stanciu
2018-05-30 22:52:50 +03:00
parent 205d878052
commit c85a142759
4 changed files with 17 additions and 17 deletions

View File

@@ -693,7 +693,7 @@ class App(QtCore.QObject):
:return: None
"""
if not isinstance(self.collection.get_active(), FlatCAMGeometry):
self.info("Select a Geometry Object to edit.")
self.inform.emit("Select a Geometry Object to edit.")
return
self.ui.updategeo_btn.setEnabled(True)
@@ -708,7 +708,7 @@ class App(QtCore.QObject):
"""
geo = self.collection.get_active()
if not isinstance(geo, FlatCAMGeometry):
self.info("Select a Geometry Object to update.")
self.inform.emit("Select a Geometry Object to update.")
return
self.draw.update_fcgeometry(geo)