Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

[[ Bug 21567 ]] Tree View Widget hilitedElement execution error - #6675

Merged
livecodepanos merged 1 commit into
livecode:develop-9.0from
bwmilby:bwm-bugfix-21567
Sep 11, 2018
Merged

[[ Bug 21567 ]] Tree View Widget hilitedElement execution error#6675
livecodepanos merged 1 commit into
livecode:develop-9.0from
bwmilby:bwm-bugfix-21567

Conversation

@bwmilby

@bwmilby bwmilby commented Sep 6, 2018

Copy link
Copy Markdown
Contributor

The following command would generate an error:
set the hilitedElement of widget 1 to empty

Input validation was not being performed to handle an empty input. Fix ensures that the path is not empty before attempting to select a key. Additionally, adjusted the code to remove an extra hiliteChanged message/redraw all in the situation where nothing was selected and an empty or invalid path was passed as input.

Added a comment to the dictionary entry indicating how to unselect a row.

The following command would generate an error:
set the hilitedElement of widget 1 to empty

Input validation was not being performed to handle an empty input.
Fix ensures that the path is not empty before attempting to select a key.
Additionally, adjusted the code to remove an extra hiliteChanged message
in the situation where nothing was selected and an empty or invalid path
was passed as input.
@montegoulding

Copy link
Copy Markdown
Contributor

@livecode-vulcan review ok 4b9918e

@livecode-vulcan

Copy link
Copy Markdown
Contributor

💙 review by @montegoulding ok 4b9918e

livecode-vulcan added a commit that referenced this pull request Sep 11, 2018
[[ Bug 21567 ]] Tree View Widget hilitedElement execution error

The following command would generate an error:
`set the hilitedElement of widget 1 to empty`

Input validation was not being performed to handle an empty input.  Fix ensures that the path is not empty before attempting to select a key.  Additionally, adjusted the code to remove an extra hiliteChanged message/redraw all in the situation where nothing was selected and an empty or invalid path was passed as input.

Added a comment to the dictionary entry indicating how to unselect a row.
@livecodepanos livecodepanos added this to the 9.0.2-rc-1 milestone Sep 11, 2018
@livecode-vulcan

Copy link
Copy Markdown
Contributor

😎 test success 4b9918e

  • try-community-armv6-android-sdk26_ndk16r15: success
  • try-community-armv7-android-sdk26_ndk16r15: success
  • try-community-arm64-android-sdk26_ndk16r15: success
  • try-community-x86-android-sdk26_ndk16r15: success
  • try-community-x86_64-android-sdk26_ndk16r15: success
  • try-community-js-emscripten-sdk1.35: success
  • try-community-universal-ios-iphoneos11.4: success
  • try-community-universal-ios-iphonesimulator11.4: success
  • try-community-universal-mac-macosx10.9: success
  • try-community-x86-linux-debian8: success
  • try-community-x86_64-linux-debian8: success
  • try-community-x86-win32: success
  • try-community-x86_64-win32: success

@livecodepanos
livecodepanos merged commit 7a3ce73 into livecode:develop-9.0 Sep 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants