Исправил процедуру Files::CloseAll ('Закрыть всё')

This commit is contained in:
svkalinin 2022-12-20 12:38:22 +03:00
parent cb6cefd8ac
commit 8de8ec16be
2 changed files with 4 additions and 14 deletions

View File

@ -1,9 +0,0 @@
######################################################
# Tcl/Tk Project manager 2.0
# Distributed under GNU Public License
# Author: Sergey Kalinin svk@nuk-svl.ru
# Home page: https://nuk-svk.ru
######################################################

View File

@ -201,11 +201,10 @@ namespace eval FileOper {
if {[lsearch -exact [.frmWork.panelNB panes] .frmWork.nbEditor2] != -1} { if {[lsearch -exact [.frmWork.panelNB panes] .frmWork.nbEditor2] != -1} {
.frmWork.panelNB forget .frmWork.nbEditor2 .frmWork.panelNB forget .frmWork.nbEditor2
} }
foreach nbItem [array names modified] { foreach nbItem [$nbEditor tabs] {
if {[info exists modified($nbItem)] == 1 && $modified($nbItem) eq "true"} { catch {$nbEditor select $nbItem}
catch {$nbEditor select $nbItem} if {[Close] eq "cancel"} {
# puts "close tab $nbItem" return "cancel"
if {[Close] eq "cancel"} {return "cancel"}
} }
} }
} }