Changeset 5145


Ignore:
Timestamp:
Mar 15, 2015, 10:53:11 PM (5 years ago)
Author:
ldelgass
Message:

Fix for automatic ticket #274586. Also, don't change cursor for busy window
while writing to socket since this was causing the cursor to flicker even for
short sends. The waiting dialog (if enabled) will still appear after a timeout
if a send causes a long round trip. The timeout allows short waits to occur
while sending without showing a wait cursor/dialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/visviewer.tcl

    r5134 r5145  
    476476        # This can cause us to re-enter SendBytes during the tkwait, which
    477477        # is not safe because the _buffer will be clobbered
    478         blt::busy hold $itk_component(main)
     478        if { [info exists itk_component(main)] } {
     479            blt::busy hold $itk_component(main) -cursor ""
     480        }
    479481        fileevent $_sid writable [itcl::code $this SendHelper]
    480482        tkwait variable ::Rappture::VisViewer::_done($this)
    481         blt::busy release $itk_component(main)
     483        if { [info exists itk_component(main)] } {
     484            blt::busy release $itk_component(main)
     485        }
    482486    }
    483487    set _buffer(out) ""
Note: See TracChangeset for help on using the changeset viewer.