gitk: Report errors in saving config file

Signed-off-by: Max Kirillov <max@max630.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Max Kirillov 2015-03-04 05:58:17 +02:00 committed by Paul Mackerras
parent 995f792b99
commit 1dd29606b6

4
gitk
View file

@ -2818,7 +2818,7 @@ proc savestuff {w} {
if {$stuffsaved} return
if {![winfo viewable .]} return
catch {
if {[catch {
if {[file exists $config_file_tmp]} {
file delete -force $config_file_tmp
}
@ -2884,6 +2884,8 @@ proc savestuff {w} {
puts $f "}"
close $f
file rename -force $config_file_tmp $config_file
} err]} {
puts "Error saving config: $err"
}
set stuffsaved 1
}