From ca0ee594f91ca9789bd4c020633226a0c31e9257 Mon Sep 17 00:00:00 2001 From: David Forrester Date: Sun, 4 Aug 2013 21:43:02 +1000 Subject: [PATCH] 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) --- src/calibre/devices/kobo/driver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 907a8b309a..2ef2c5efb7 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -2490,7 +2490,8 @@ class KOBOTOUCH(KOBO): "WHERE Type = 'Shelf' " "AND NOT EXISTS " "(SELECT 1 FROM Shelf " - "WHERE Shelf.Name = Activity.Id)" + "WHERE Shelf.Name = Activity.Id " + "AND Shelf._IsDeleted = 'false')" ) cursor = connection.cursor()