hamster-applet r898 - trunk/hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r898 - trunk/hamster
- Date: Wed, 15 Apr 2009 17:05:55 +0000 (UTC)
Author: tbaugis
Date: Wed Apr 15 17:05:55 2009
New Revision: 898
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=898&view=rev
Log:
fixed the crash message that kept popping up
after hamster shutting down :
main_quit is not required if applet is removed from panel
Modified:
trunk/hamster/hamster-applet.py
Modified: trunk/hamster/hamster-applet.py
==============================================================================
--- trunk/hamster/hamster-applet.py (original)
+++ trunk/hamster/hamster-applet.py Wed Apr 15 17:05:55 2009
@@ -69,7 +69,8 @@
if last_activity and last_activity['end_time'] == None:
storage.touch_fact(last_activity)
- gtk.main_quit()
+ if gtk.main_level():
+ gtk.main_quit()
def usage():
print _(u"""Time tracker: Usage
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]