Changeset 726 for trunk/gui/scripts


Ignore:
Timestamp:
May 11, 2007 10:28:42 AM (17 years ago)
Author:
mmc
Message:

Added a fix so that tools running without a $SESSIONDIR/resources file
won't choke on the missing -appname resource.

File:
1 edited

Legend:

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

    r724 r726  
    121121    # tool name from the resources config file.
    122122    #
    123     if {"" != $_resources(-appname) && "" == [$_xmlobj get tool.name]} {
     123    if {[info exists _resources(-appname)]
     124          && "" != $_resources(-appname)
     125          && "" == [$_xmlobj get tool.name]} {
    124126        $_xmlobj put tool.name $_resources(-appname)
    125127    }
Note: See TracChangeset for help on using the changeset viewer.