Switching stack now removes focus from all elements

Fixes CURA-1778
This commit is contained in:
Jaime van Kessel 2016-06-28 10:55:20 +02:00
parent 05ff256af4
commit 0a3f64ef51

View file

@ -104,6 +104,7 @@ class MachineManagerModel(QObject):
self._global_stack_valid = not self._checkStackForErrors(self._global_container_stack)
def _onActiveExtruderStackChanged(self):
self.blurSettings.emit() # Ensure no-one has focus.
if self._active_container_stack and self._active_container_stack != self._global_container_stack:
self._active_container_stack.containersChanged.disconnect(self._onInstanceContainersChanged)
self._active_container_stack.propertyChanged.disconnect(self._onGlobalPropertyChanged)