diff options
author | dgp <dgp@users.sourceforge.net> | 2011-10-31 19:37:01 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-10-31 19:37:01 (GMT) |
commit | 1eb4420a6fe15c9f84b843e277aa2da170ba7427 (patch) | |
tree | 9ee5a0e6e1019258df7e9d66b7cd1c1011468ad3 /library | |
parent | 890e2a2cca86ceb6a223c22ad97ddf52e68a4f55 (diff) | |
parent | 5fbf35844154d90df4f7fdf5b9b21edea07c4e6e (diff) | |
download | tk-1eb4420a6fe15c9f84b843e277aa2da170ba7427.zip tk-1eb4420a6fe15c9f84b843e277aa2da170ba7427.tar.gz tk-1eb4420a6fe15c9f84b843e277aa2da170ba7427.tar.bz2 |
merge to release
Diffstat (limited to 'library')
-rw-r--r-- | library/xmfbox.tcl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/library/xmfbox.tcl b/library/xmfbox.tcl index d511462..0cbf251 100644 --- a/library/xmfbox.tcl +++ b/library/xmfbox.tcl @@ -246,8 +246,12 @@ proc ::tk::MotifFDialog_Config {dataName type argList} { if {$type eq "open"} { lappend specs {-multiple "" "" "0"} } + if {$type eq "save"} { + lappend specs {-confirmoverwrite "" "" "1"} + } set data(-multiple) 0 + set data(-confirmoverwrite) 1 # 2: default values depending on the type of the dialog # if {![info exists data(selectPath)]} { @@ -847,7 +851,7 @@ proc ::tk::MotifFDialog_ActivateSEnt {w} { -message [mc {File "%1$s" does not exist.} $item] return } - } elseif {$data(type) eq "save"} { + } elseif {$data(type) eq "save" && $data(-confirmoverwrite)} { set message [format %s%s \ [mc "File \"%1\$s\" already exists.\n\n" $selectFilePath] \ [mc {Replace existing file?}]] |