Hello,

at the end of ::tree::dorefresh you find the following code:
  

  # if the Tree base is not the current one, updates the Tree base to the
first game in filter : that way it is possible to
  # directly generate an opening report for example
  if {$baseNumber != [sc_base current] } {
    set current [sc_base current]
    sc_base switch $baseNumber
    if { [sc_filter first] != 0 } {
      sc_game load [sc_filter first]
    }
    sc_base switch $current


Now if you do the following:
* open two bases with trees
* create a new game in one base, insert moves but do not save
* switch to the other base and back.
Your entered game is lost.

The following replacement should prevent this.


  # if the Tree base is not the current one, updates the Tree base to the
first game in filter : that way it is possible to
  # directly generate an opening report for example
  if {$baseNumber != [sc_base current] } {
    set current [sc_base current]
    sc_base switch $baseNumber
    if { [sc_filter first] != 0 } {
      if { [sc_game number] != 0 } {
        if { [sc_game altered] == 0 } {
          sc_game load [sc_filter first]
        }
        }
    }
    sc_base switch $current


Somebody should check it and check it in.

        Gerd



------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Scid-users mailing list
Scid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to