mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk qt) #3930 - "Add URL" - auto-copy links from the clipboard
When opening the "Add URL" dialog, check the clipboard selection & clipboard proper to see if either contains a URL, magnet link, or info hash code. If it has any of those things, put that in the dialog's entry field as the default action. Patch by cantabile.
This commit is contained in:
@@ -40,6 +40,10 @@ class AddData
|
||||
QByteArray toBase64( ) const;
|
||||
|
||||
QString readableName( ) const;
|
||||
|
||||
public:
|
||||
|
||||
static bool isSupported( const QString& str ) { return AddData(str).type != NONE; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user