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:
parent
9931244e1e
commit
6d463a20fe
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue