A small patch for a small bug:
When closing gPodder during a download, and the option "on quit hide" is
on, godder ask for a confirmation (cancel, hide or quit). It should hide
gPodder without asking. This patch fix that.
Index: gpodder/gui.py
===================================================================
--- gpodder/gui.py (revision 560)
+++ gpodder/gui.py (working copy)
@@ -915,7 +915,10 @@
gl = gPodderLib()
downloading = services.download_status_manager.has_items()
- if gl.config.on_quit_ask or downloading:
+ if not gl.config.on_quit_ask and gl.config.on_quit_systray and self.tray_icon:
+ self.iconify_main_window()
+
+ elif gl.config.on_quit_ask or downloading:
dialog = gtk.MessageDialog(self.gPodder, gtk.DIALOG_MODAL, gtk.MESSAGE_QUESTION, gtk.BUTTONS_NONE)
dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)
if self.tray_icon:
@@ -951,8 +954,6 @@
gl.config.on_quit_systray = True
self.iconify_main_window()
- elif gl.config.on_quit_systray and self.tray_icon:
- self.iconify_main_window()
else:
self.close_gpodder()
_______________________________________________
gpodder-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-devel