mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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
This commit is contained in:
parent
154d315c92
commit
4f1d1b8dc7
@ -965,7 +965,7 @@ void RetroshareDirModel::downloadDirectory(const DirDetails & dirDetails, int pr
|
||||
else if (dirDetails.type & DIR_TYPE_DIR)
|
||||
{
|
||||
std::list<DirStub>::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;
|
||||
|
Loading…
Reference in New Issue
Block a user