Check modified in switch_view only if there is no parent

This commit is contained in:
Cédric Krier committed 2011-04-05 14:22:06 +02:00
1 parent c3e45ddac8
commit 7398eb8f90
1 file changed
+1 -1
+1 -1
View File
@@ -287,7 +287,7 @@ class Screen(SignalEvent):
return True
def switch_view(self, view_type=None, default=True, context=None):
if self.modified():
if not self.parent and self.modified():
return
self.current_view.set_value()
if (self.current_record and