fixed check for attribute 'window' by using has_attribute()
0001867: Patch containing fixes (for reporting and general) svn: r10151
This commit is contained in:
@@ -466,7 +466,7 @@ class ManagedWindow:
|
||||
if self.isWindow :
|
||||
self.present(self)
|
||||
else :
|
||||
assert self.window, "ManagedWindow: self.window does not exist!"
|
||||
assert self.has_attribute('window'), "ManagedWindow: self.window does not exist!"
|
||||
self.window.present()
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user