hamster-applet r602 - trunk/hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r602 - trunk/hamster
- Date: Fri, 24 Oct 2008 15:45:12 +0000 (UTC)
Author: tbaugis
Date: Fri Oct 24 15:45:12 2008
New Revision: 602
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=602&view=rev
Log:
check if there is fact to remove before trying to get rid of it
Modified:
trunk/hamster/storage.py
Modified: trunk/hamster/storage.py
==============================================================================
--- trunk/hamster/storage.py (original)
+++ trunk/hamster/storage.py Fri Oct 24 15:45:12 2008
@@ -51,9 +51,9 @@
def remove_fact(self, fact_id):
fact = self.get_fact(fact_id)
- result = self.__remove_fact(fact_id)
- self.dispatch('day_updated', fact['start_time'])
- return result
+ if fact:
+ self.__remove_fact(fact_id)
+ self.dispatch('day_updated', fact['start_time'])
def get_sorted_activities(self):
return self.__get_sorted_activities()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]