Changeset 1348 for trunk/gui


Ignore:
Timestamp:
Mar 19, 2009 1:45:57 PM (15 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

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

    r1347 r1348  
    738738                set ext ""
    739739                set f [$itk_component(resultpages) page $page]
    740                 set code [catch { $f.rviewer download now $widget } result]
    741                 if { $code == 0 }  {
    742                     foreach {ext data} $result break
    743                     if {"" == $ext} {
    744                         if {"" != $widget} {
    745                             Rappture::Tooltip::cue $widget \
    746                                 "Can't download this result."
    747                         }
    748                         return
    749                     }
    750                     regsub -all {[\ -\/\:-\@\{-\~]} $title {} title
    751                     set file "$title$ext"
    752                 } else {
    753                     if { $code != 3 } {
    754                         if {"" != $widget} {
    755                             Rappture::Tooltip::cue $widget \
    756                                 "Error downloading this result: $result"
    757                         }
     740                set result [$f.rviewer download now $widget]
     741                if { $result == "" } {
     742                    return;             # User cancelled the download.
     743                }
     744                foreach {ext data} $result break
     745                if {"" == $ext} {
     746                    if {"" != $widget} {
     747                        Rappture::Tooltip::cue $widget \
     748                            "Can't download this result."
    758749                    }
    759750                    return
    760751                }
     752                regsub -all {[\ -\/\:-\@\{-\~]} $title {} title
     753                set file "$title$ext"
    761754            } else {
    762755                # this shouldn't happen
Note: See TracChangeset for help on using the changeset viewer.