[Pkg-privacy-commits] [onionshare] 237/256: Make systray exit action call OnionShareGui.close() instead of sys.exit(), to give OnionShare a chance to warn users of open servers, and to gracefully shut down
Ulrike Uhlig
ulrike at moszumanska.debian.org
Fri May 26 12:53:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
ulrike pushed a commit to branch master
in repository onionshare.
commit 65894e2e44cc525275b04d2169470701349c4363
Author: Micah Lee <micah at micahflee.com>
Date: Mon May 22 16:19:44 2017 -0700
Make systray exit action call OnionShareGui.close() instead of sys.exit(), to give OnionShare a chance to warn users of open servers, and to gracefully shut down
---
onionshare_gui/onionshare_gui.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index cb84d74..caaf6fc 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -149,7 +149,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
def _initSystemTray(self):
menu = QtWidgets.QMenu()
exitAction = menu.addAction(strings._('systray_menu_exit', True))
- exitAction.triggered.connect(sys.exit)
+ exitAction.triggered.connect(self.close)
self.systemTray = QtWidgets.QSystemTrayIcon(self)
self.systemTray.setIcon(QtGui.QIcon(common.get_resource_path('images/logo.png')))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git
More information about the Pkg-privacy-commits
mailing list