Delete Activity entry for synced shelves

When deleting shelves that have been synced, the Activity entry for the
shelf was not being deleted. This left a tile for the shelf on the home
screen of the Glo and AuraHD. Fixes #1208159 [Delete Activity entry for synced shelves on Kobo devices](https://bugs.launchpad.net/calibre/+bug/1208159)
This commit is contained in:
David Forrester 2013-08-04 21:43:02 +10:00 committed by Kovid Goyal
parent eb9714c761
commit ca0ee594f9

View File

@ -2490,7 +2490,8 @@ class KOBOTOUCH(KOBO):
"WHERE Type = 'Shelf' " "WHERE Type = 'Shelf' "
"AND NOT EXISTS " "AND NOT EXISTS "
"(SELECT 1 FROM Shelf " "(SELECT 1 FROM Shelf "
"WHERE Shelf.Name = Activity.Id)" "WHERE Shelf.Name = Activity.Id "
"AND Shelf._IsDeleted = 'false')"
) )
cursor = connection.cursor() cursor = connection.cursor()