Changeset 2bd0360 in tol


Ignore:
Timestamp:
Dec 20, 2016, 9:40:01 AM (10 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
5e157f6
Parents:
c212e70
Message:

Refs #1933
Se revisa el método que actualiza el nodo de archivos compilados.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7377 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/tolinspe__wtree2.tcl

    rc212e70 r2bd0360  
    3030#///////////////////////////////////////////////////////////////////////////// 
    3131  variable wt_tree
    32   set open 0
    3332  set idx_file [$wt_tree item id "root-files"]
    3433  if { [$wt_tree item isopen $idx_file] } {
     34    #@ si está abierto el nodo de archivos, se cierra y se abre
    3535    $wt_tree collapse $idx_file
    36     set open 1
    37   }
     36    $wt_tree expand $idx_file
     37    #@ si la selección estaba en el nodo de archivos se pierde
     38    #@ de modo que seleccionamos el nodo raíz
     39    if { [$wt_tree selection get] eq "" } {
     40      $wt_tree selection modify $idx_file all
     41    }
     42  }
     43  #@ si la selección es el nodo raíz, actualizamos la vista
    3844  if { [$wt_tree item state get $idx_file selected] } {
    3945    SelectObject
    40   }
    41   if $open {
    42     $wt_tree expand $idx_file
    4346  }
    4447}
Note: See TracChangeset for help on using the changeset viewer.