gui: Ask if the currently running session should be stopped when
loading a file.
This commit is contained in:
parent
51e670c717
commit
9f1e800756
1 changed files with 5 additions and 1 deletions
|
@ -148,6 +148,10 @@ proc openFile {} {
|
|||
global canvas_list curcanvas systype
|
||||
global changed
|
||||
|
||||
if { [popupStopSessionPrompt] == "cancel" } {
|
||||
return
|
||||
}
|
||||
|
||||
if { [lindex [file extension $currentFile] 0] == ".py" } {
|
||||
set flags 0x10 ;# status request flag
|
||||
sendRegMessage -1 $flags [list "exec" $currentFile]
|
||||
|
|
Loading…
Reference in a new issue