Fix typo preventing save of records in tree view when no record is selected

This commit is contained in:
Nicolas Évrard committed 2011-09-01 17:06:19 +02:00
1 parent 7d7292843a
commit 817731213c
1 file changed
+1 -1
+1 -1
View File
@@ -447,7 +447,7 @@ class Screen(SignalEvent):
def save_current(self):
if not self.current_record:
if self.current_view == 'tree' and len(self.group):
if self.current_view.view_type == 'tree' and len(self.group):
self.current_record = self.group[0]
else:
return True