mirror of
https://github.com/transmission/transmission
synced 2025-02-22 06:00:41 +00:00
when adding by filename, take local file separators into account
This commit is contained in:
parent
65f15a4ba9
commit
8c76f40b49
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
|||
*/
|
||||
|
||||
#include <QFile>
|
||||
#include <QDir>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/utils.h> // tr_base64_encode()
|
||||
|
@ -33,7 +34,7 @@ AddData :: set( const QString& key )
|
|||
}
|
||||
else if( QFile(key).exists( ) )
|
||||
{
|
||||
filename = key;
|
||||
filename = QDir::fromNativeSeparators( key );
|
||||
type = FILENAME;
|
||||
|
||||
QFile file( key );
|
||||
|
|
Loading…
Reference in a new issue