# Add functionality to preview torrent when double clicking on it.
# Lacks proper translations.
+++ src/gui/optionsdlg.h
@@ -44,6 +44,7 @@
{
TOGGLE_PAUSE,
OPEN_DEST,
+ PREVIEW,
NO_ACTION
};
+++ src/gui/optionsdlg.ui
@@ -295,6 +295,11 @@
-
+ Preview file
+
+
+ -
+
No action
@@ -320,6 +325,11 @@
-
+
+ Preview file
+
+
+ -
No action
+++ src/gui/transferlistwidget.cpp
@@ -239,6 +239,9 @@
else
Utils::Misc::openPath(torrent->contentPath(true));
break;
+ case PREVIEW:
+ if (torrent->hasMetadata())
+ new PreviewSelect(this, torrent);
}
}