dialog.Show returns weird value when closed with X

Case number:699969-993790
Topic:General
Opened by:truestone
Status:Open
Type:Bug
Opened on:Tuesday, October 23, 2012 - 18:03
Last modified:Friday, October 26, 2012 - 00:27

If you launch a dialog with ScriptV2, the return value of dialog.Show is supposed to identify the button pressed. The doc says that if the user presses the X button in the upper right corner, the return value should be 0. But in reality, the return value is the value that wat last returned by dialog.Show, so the button id that from the previous dialog, which may be completely unrelated to the dialog just closed.

(Tue, 10/23/2012 - 18:03  |  3 comments)


brow42's picture
User offline. Last seen 9 weeks 23 hours ago. Offline
Joined: 09/19/2011
Groups: None

Thanks for tracking this down. I've always meant to work out the pattern. That's pretty much what I thought was happening. This is why I always include a Cancel button. It'd be nice to drop that and just use the (X) sometimes.

tamirh's picture
User offline. Last seen 6 years 36 weeks ago. Offline
Joined: 05/11/2012

Thanks for finding this. Looking into it.

tamirh's picture
User offline. Last seen 6 years 36 weeks ago. Offline
Joined: 05/11/2012

Found the issue, fixed. It's too late to have this go out with the devprev being released now so it should go out in the next one.

Sitemap

Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons