You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.4 KiB
48 lines
1.4 KiB
8 years ago
|
# This patch adds the functionality of previewing a file when double-clicking on it.
|
||
|
# I hope to send this patch to upstream soon, but handling translations is a pain.
|
||
|
|
||
|
+++ src/gui/optionsdlg.h
|
||
|
@@ -44,6 +44,7 @@
|
||
|
{
|
||
|
TOGGLE_PAUSE,
|
||
|
OPEN_DEST,
|
||
|
+ PREVIEW,
|
||
|
NO_ACTION
|
||
|
};
|
||
|
|
||
|
+++ src/gui/optionsdlg.ui
|
||
|
@@ -295,6 +295,11 @@
|
||
|
</item>
|
||
|
<item>
|
||
|
<property name="text">
|
||
|
+ <string>Preview file</string>
|
||
|
+ </property>
|
||
|
+ </item>
|
||
|
+ <item>
|
||
|
+ <property name="text">
|
||
|
<string>No action</string>
|
||
|
</property>
|
||
|
</item>
|
||
|
@@ -320,6 +325,11 @@
|
||
|
</property>
|
||
|
</item>
|
||
|
<item>
|
||
|
+ <property name="text">
|
||
|
+ <string>Preview file</string>
|
||
|
+ </property>
|
||
|
+ </item>
|
||
|
+ <item>
|
||
|
<property name="text">
|
||
|
<string>No action</string>
|
||
|
</property>
|
||
|
+++ 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);
|
||
|
}
|
||
|
}
|