Corrected the "suspendall" and "resumeall" Tcl scripts so that they

do not fail when using "magicexec -dnull" (because there are no
layout windows, there is nothing to suspend and resume).
This commit is contained in:
Tim Edwards 2020-11-06 14:39:10 -05:00
parent 9931244e1e
commit 6d463a20fe
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
8.3.76
8.3.77

View File

@ -15,6 +15,7 @@ proc magic::suspendall {} {
global Winopts
if {[info commands winfo] != ""} {
foreach window [magic::windownames layout] {
if {$window == 0} {continue}
set framename [winfo toplevel $window]
if {$framename == "."} {
set framename $window
@ -30,6 +31,7 @@ proc magic::resumeall {} {
global Winopts
if {[info commands winfo] != ""} {
foreach window [magic::windownames layout] {
if {$window == 0} {continue}
set framename [winfo toplevel $window]
if {$framename == "."} {
set framename $window