From 4f1d1b8dc7cf0c8da4cbe6a2de446527b82b9223 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Sat, 27 Aug 2011 21:04:02 +0000 Subject: [PATCH] Fix for ticket #127 Impossible to download a directory, if the download directory is utf8. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4575 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/RemoteDirModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/RemoteDirModel.cpp b/retroshare-gui/src/gui/RemoteDirModel.cpp index aee6e67a9..f5364e1c0 100644 --- a/retroshare-gui/src/gui/RemoteDirModel.cpp +++ b/retroshare-gui/src/gui/RemoteDirModel.cpp @@ -965,7 +965,7 @@ void RetroshareDirModel::downloadDirectory(const DirDetails & dirDetails, int pr else if (dirDetails.type & DIR_TYPE_DIR) { std::list::const_iterator it; - QDir dwlDir(rsFiles->getDownloadDirectory().c_str()); + QDir dwlDir(QString::fromUtf8(rsFiles->getDownloadDirectory().c_str())); QString cleanPath = QDir::cleanPath(QString::fromUtf8(dirDetails.path.substr(prefixLen).c_str())); if (!dwlDir.mkpath(cleanPath)) return;