Ignore:
Timestamp:
Oct 14, 2021 4:59:02 PM (7 weeks ago)
Author:
toby
Message:

CIF export fixes; work around for IsModified?() not showing changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r5020 r5047  
    752752        but (unlike _onLoseFocus) don't update the textbox contents.
    753753        '''
    754         if not self.IsModified():   #ignore mouse crusing
    755             return
     754        if self.type is not str:
     755            if not self.IsModified(): return  #ignore mouse crusing
     756        elif self.result[self.key] == self.GetValue(): # .IsModified() seems unreliable for str
     757           return
    756758        if self.evaluated and not self.invalid: # deal with computed expressions
    757759            self.evaluated = False # expression has been recast as value, reset flag
     
    771773        '''
    772774        if event: event.Skip()
    773         if not self.IsModified():   #ignore mouse crusing
    774             return
     775        if self.type is not str:
     776            if not self.IsModified(): return  #ignore mouse crusing
     777        elif self.result[self.key] == self.GetValue(): # .IsModified() seems unreliable for str
     778           return
    775779        if self.evaluated: # deal with computed expressions
    776780            if self.invalid: # don't substitute for an invalid expression
Note: See TracChangeset for help on using the changeset viewer.