From 2a73aea72acaf7413bdcf2e93fd089aaf5bfd73f Mon Sep 17 00:00:00 2001 From: mid-kid Date: Tue, 19 Dec 2017 00:05:24 +0100 Subject: [PATCH] Add qbittorrent patch I forgot last time --- ...torrent-4.0.1-preview-file-on-double-click.patch} | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) rename satellites/extrafiles/qbittorrent/{qbittorrent-3.3.16-preview-file-on-double-click.patch => qbittorrent-4.0.1-preview-file-on-double-click.patch} (84%) diff --git a/satellites/extrafiles/qbittorrent/qbittorrent-3.3.16-preview-file-on-double-click.patch b/satellites/extrafiles/qbittorrent/qbittorrent-4.0.1-preview-file-on-double-click.patch similarity index 84% rename from satellites/extrafiles/qbittorrent/qbittorrent-3.3.16-preview-file-on-double-click.patch rename to satellites/extrafiles/qbittorrent/qbittorrent-4.0.1-preview-file-on-double-click.patch index 21315ca..c77ac32 100644 --- a/satellites/extrafiles/qbittorrent/qbittorrent-3.3.16-preview-file-on-double-click.patch +++ b/satellites/extrafiles/qbittorrent/qbittorrent-4.0.1-preview-file-on-double-click.patch @@ -1,6 +1,3 @@ -# Add functionality to preview torrent when double clicking on it. -# Lacks proper translations. - +++ src/gui/optionsdlg.h @@ -44,6 +44,7 @@ { @@ -11,7 +8,7 @@ }; +++ src/gui/optionsdlg.ui -@@ -295,6 +295,11 @@ +@@ -300,6 +300,11 @@ @@ -23,7 +20,7 @@ No action -@@ -320,6 +325,11 @@ +@@ -325,6 +330,11 @@ @@ -36,13 +33,12 @@ No action +++ src/gui/transferlistwidget.cpp -@@ -239,6 +239,9 @@ +@@ -363,6 +363,9 @@ else Utils::Misc::openPath(torrent->contentPath(true)); break; + case PREVIEW: + if (torrent->hasMetadata()) -+ new PreviewSelect(this, torrent); ++ new PreviewSelectDialog(this, torrent); } } -