From 8c76f40b49d3866fd80a87e723731dbbd3685c34 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sat, 24 Aug 2013 19:19:45 +0000 Subject: [PATCH] when adding by filename, take local file separators into account --- qt/add-data.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.40.0