Fix modified state on list view
Let the Field.set_client set the modified state. The editing test for treeview doesn't work properly.
This commit is contained in:
1 parent
c03ad30fa3
commit
57bd18ac4c
2 files changed
+1
-8
No files matched your search
@@ -336,8 +336,7 @@ class ViewList(ParserView):
|
||||
|
||||
@property
|
||||
def modified(self):
|
||||
return any(c.renderer.props.editing
|
||||
for c in self.widget_tree.cells.itervalues())
|
||||
return False
|
||||
|
||||
def get_fields(self):
|
||||
return [col.name for col in self.widget_tree.get_columns() if col.name]
|
||||
|
||||
@@ -390,12 +390,6 @@ class Char(object):
|
||||
callback()
|
||||
|
||||
def editing_started(self, cell, editable, path):
|
||||
store = self.treeview.get_model()
|
||||
record = store.get_value(store.get_iter(path), 0)
|
||||
|
||||
def send():
|
||||
record.signal('record-modified')
|
||||
gobject.idle_add(send)
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user