gui: Ask if the currently running session should be stopped when

loading a file.
This commit is contained in:
tgoff0 2014-12-15 18:22:40 +00:00
parent 51e670c717
commit 9f1e800756

View file

@ -147,7 +147,11 @@ proc openFile {} {
global undolog activetool global undolog activetool
global canvas_list curcanvas systype global canvas_list curcanvas systype
global changed global changed
if { [popupStopSessionPrompt] == "cancel" } {
return
}
if { [lindex [file extension $currentFile] 0] == ".py" } { if { [lindex [file extension $currentFile] 0] == ".py" } {
set flags 0x10 ;# status request flag set flags 0x10 ;# status request flag
sendRegMessage -1 $flags [list "exec" $currentFile] sendRegMessage -1 $flags [list "exec" $currentFile]