Changeset 7725:c2451b7ae82c in orange


Ignore:
Timestamp:
03/03/11 11:11:56 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
d6e14c7c474a32fef2bd07dd59209e05736bf956
Message:
  • changed isSchemaChanged to work for new unsaved schemas
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeCanvas/orngDoc.py

    r7721 r7725  
    3838        self.guide_text.setFont(font) 
    3939 
    40         oneItem = self.canvas.addRect(QRectF(0.0, 0.0, 300.0, 300.0)) # inital item so sceneRect always contains QPoint(0, 0) 
    41         self.canvas.sceneRect() # call scene rect so int calculates the rect  
     40        oneItem = self.canvas.addRect(QRectF(0.0, 0.0, 300.0, 300.0)) # initial item so sceneRect always contains QPoint(0, 0) 
     41        self.canvas.sceneRect() # call sceneRect so it updates the rect  
    4242        self.canvas.removeItem(oneItem) 
    4343         
     
    5757 
    5858    def isSchemaChanged(self): 
    59         return self.loadedSettingsDict and self.loadedSettingsDict != dict([(widget.caption, widget.instance.saveSettingsStr()) for widget in self.widgets]) 
     59        return self.loadedSettingsDict != dict([(widget.caption, widget.instance.saveSettingsStr()) for widget in self.widgets]) 
    6060         
    6161    # we are about to close document 
Note: See TracChangeset for help on using the changeset viewer.