Check modified in switch_view only if there is no parent
This commit is contained in:
1 parent
c3e45ddac8
commit
7398eb8f90
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user