summaryrefslogtreecommitdiff
path: root/net-p2p/qbittorrent/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-07-19 22:05:27 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-07-19 22:05:27 +0100
commit121ed4eec41fbf03e1998d09eede1bf449da63b9 (patch)
treece9341d77d1507f67d4a3a1472da9011b5baa0a8 /net-p2p/qbittorrent/files
parentdd762ff83c330186ee2ede002e08b2f780cddd51 (diff)
gentoo resync : 19.07.2019
Diffstat (limited to 'net-p2p/qbittorrent/files')
-rw-r--r--net-p2p/qbittorrent/files/qbittorrent-4.1.6-no-screenblank-on-close-to-systray.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/net-p2p/qbittorrent/files/qbittorrent-4.1.6-no-screenblank-on-close-to-systray.patch b/net-p2p/qbittorrent/files/qbittorrent-4.1.6-no-screenblank-on-close-to-systray.patch
new file mode 100644
index 000000000000..361f7aa22553
--- /dev/null
+++ b/net-p2p/qbittorrent/files/qbittorrent-4.1.6-no-screenblank-on-close-to-systray.patch
@@ -0,0 +1,25 @@
+From 9a4dd3ea9d1fc2af0cc5724ebb19fc99297c2960 Mon Sep 17 00:00:00 2001
+From: Ekin Dursun <ekindursun@gmail.com>
+Date: Tue, 7 May 2019 02:08:46 +0300
+Subject: [PATCH] Don't turn screen blank when closed to system tray
+
+Closes #9240 and possibly #9121, as @zeule suggested here: https://github.com/qbittorrent/qBittorrent/issues/9240#issuecomment-408025722.
+---
+ src/gui/mainwindow.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp
+index 4c62ba5d90..0b8b41ebab 100644
+--- a/src/gui/mainwindow.cpp
++++ b/src/gui/mainwindow.cpp
+@@ -1158,8 +1158,8 @@ void MainWindow::closeEvent(QCloseEvent *e)
+ #else
+ const bool goToSystrayOnExit = pref->closeToTray();
+ if (!m_forceExit && m_systrayIcon && goToSystrayOnExit && !this->isHidden()) {
+- hide();
+- e->accept();
++ e->ignore();
++ QTimer::singleShot(0, this, &QWidget::hide);
+ if (!pref->closeToTrayNotified()) {
+ showNotificationBaloon(tr("qBittorrent is closed to tray"), tr("This behavior can be changed in the settings. You won't be reminded again."));
+ pref->setCloseToTrayNotified(true);