-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tank and environment input object cleanup in mock mode
Set the deviceInstance property value directly, instead of calling _deviceInstance.setValue(), so that BaseDevice::setDeviceInstance() is called and BaseDevice::validChanged is emitted when the device instance is set to -1. This ensures the clean up handlers in Tank.qml and EnvironmentInput.qml are triggered. Also clean up Tank.qml to use a single signal handler to check whether the tank needs to be added/removed to/from the tank models.
- Loading branch information
Showing
3 changed files
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters