From d0fb849398660613105d14e592967d7a6020773c Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 21 Mar 2016 19:44:16 +0100 Subject: [PATCH] jp: fixed traceback shown on a normal quit when a progression is finished --- frontends/src/jp/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/src/jp/base.py b/frontends/src/jp/base.py index d6159214..24aae9b1 100644 --- a/frontends/src/jp/base.py +++ b/frontends/src/jp/base.py @@ -272,7 +272,7 @@ class Jp(object): /!\: return must be used after calling this method ! """ assert self._need_loop - # XXX: python-dbus will show a traceback if we exit in a signal handler with an error code + # XXX: python-dbus will show a traceback if we exit in a signal handler # so we use this little timeout trick to avoid it GLib.timeout_add(0, self.quit, errcode) @@ -496,7 +496,7 @@ class CommandBase(object): pass self.onProgressFinished(metadata) if self.host.quit_on_progress_end: - self.host.quit() + self.host.quitFromSignal() def progressErrorHandler(self, uid, message, profile): if profile != self.profile: