Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/view/home/favoriteslayout.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/home/favoriteslayout.py')
-rw-r--r--src/view/home/favoriteslayout.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/home/favoriteslayout.py b/src/view/home/favoriteslayout.py
index 0400350..9329fe1 100644
--- a/src/view/home/favoriteslayout.py
+++ b/src/view/home/favoriteslayout.py
@@ -64,7 +64,8 @@ class FavoritesLayout(gobject.GObject, hippo.CanvasLayout):
int(relative_y * _BASE_SCALE / float(height)))
def remove(self, icon):
- del self.fixed_positions[icon]
+ if icon in self.fixed_positions:
+ del self.fixed_positions[icon]
self.box.remove(icon)
def move_icon(self, icon, x, y, locked=False):