From: Jordan Lee Date: Sat, 24 Aug 2013 19:19:45 +0000 (+0000) Subject: when adding by filename, take local file separators into account X-Git-Tag: 2.83~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c76f40b49d3866fd80a87e723731dbbd3685c34;p=transmission when adding by filename, take local file separators into account --- diff --git a/qt/add-data.cc b/qt/add-data.cc index f52cbf795..d7accdf9b 100644 --- a/qt/add-data.cc +++ b/qt/add-data.cc @@ -11,6 +11,7 @@ */ #include +#include #include #include // 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 );