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);
}
}
-