Changeset 2253
- Timestamp:
- May 20, 2011, 1:00:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/builder/scripts/main.tcl
r2252 r2253 784 784 main_generate_xml 785 785 786 # change any !Language for the command into a proper 787 # invocation command. Grab the XML before we do this 788 # as the last official XML that's been saved. We'll 789 # know later if things changed and we need to save again. 790 set xmlBeforeCmdSubst [$ToolXml xml] 791 786 792 set cmd [$ToolXml get tool.command] 787 793 if {[string index $cmd 0] eq "!"} { … … 807 813 set status "error" 808 814 } else { 809 set LastToolXmlLoaded [$ToolXml xml]815 set LastToolXmlLoaded $xmlBeforeCmdSubst 810 816 } 811 817 } … … 966 972 967 973 if {[$ToolXml xml] ne $LastToolXmlLoaded} { 968 set choice [tk_messageBox -icon warning -type yesno -title "Rappture: Save Changes?" -message "Changes to the current tool haven't been saved.\n\nSave changes?"]974 set choice [tk_messageBox -icon warning -type yesnocancel -title "Rappture: Save Changes?" -message "Changes to the current tool haven't been saved.\n\nSave changes?"] 969 975 if {$choice == "yes" && ![main_saveas]} { 976 return 977 } elseif {$choice == "cancel"} { 970 978 return 971 979 }
Note: See TracChangeset
for help on using the changeset viewer.