Fix #1075476 (Last modified timestamp not changed when deleting value in tag browser)

This commit is contained in:
Kovid Goyal 2012-11-08 00:03:07 +05:30
commit e074eb55bf

View File

@ -292,6 +292,7 @@ class CustomColumns(object):
if num is not None:
data = self.custom_column_num_map[num]
table,lt = self.custom_table_names(data['num'])
self.dirty_books_referencing('#'+data['label'], id, commit=False)
self.conn.execute('DELETE FROM %s WHERE value=?'%lt, (id,))
self.conn.execute('DELETE FROM %s WHERE id=?'%table, (id,))
self.conn.commit()