Disable editing metadata on the device view when automatic update is chosen.

This commit is contained in:
Charles Haley 2010-07-11 10:51:56 +01:00
parent 62a5b4d459
commit abdee7d012

View File

@ -1216,7 +1216,9 @@ class DeviceBooksModel(BooksModel): # {{{
return done
def set_editable(self, editable):
self.editable = editable
# Cannot edit if metadata is sent on connect. Reason: changes will
# revert to what is in the library on next connect.
self.editable = editable and prefs['manage_device_metadata']!='on_connect'
def set_search_restriction(self, s):
pass