* src/PageView.py: set dirty flag appropriately

svn: r6906
This commit is contained in:
Don Allingham 2006-06-17 03:55:00 +00:00
parent fe4bdbc9c1
commit 2d50f33fb7
2 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,5 @@
2006-06-16 Don Allingham <don@gramps-project.org> 2006-06-16 Don Allingham <don@gramps-project.org>
* src/PageView.py: set dirty flag appropriately
* src/DataViews/_MediaView.py: clear image if none is selected * src/DataViews/_MediaView.py: clear image if none is selected
2006-06-16 Alex Roitman <shura@gramps-project.org> 2006-06-16 Alex Roitman <shura@gramps-project.org>

View File

@ -657,17 +657,23 @@ class ListView(BookMarkView):
if self.active: if self.active:
for handle in handle_list: for handle in handle_list:
self.model.add_row_by_handle(handle) self.model.add_row_by_handle(handle)
else:
self.dirty = True
def row_update(self,handle_list): def row_update(self,handle_list):
self.model.prev_handle = None self.model.prev_handle = None
if self.active: if self.active:
for handle in handle_list: for handle in handle_list:
self.model.update_row_by_handle(handle) self.model.update_row_by_handle(handle)
else:
self.dirty = True
def row_delete(self,handle_list): def row_delete(self,handle_list):
if self.active: if self.active:
for handle in handle_list: for handle in handle_list:
self.model.delete_row_by_handle(handle) self.model.delete_row_by_handle(handle)
else:
self.dirty = True
def define_actions(self): def define_actions(self):
""" """