fixed open folder from File Sharing dialog

This commit is contained in:
csoler 2016-09-27 20:20:12 +02:00
parent 37a4e7750c
commit c26970feba

View File

@ -1133,10 +1133,10 @@ void RetroshareDirModel::openSelected(const QModelIndexList &qmil)
{ {
if ((*it).type & DIR_TYPE_PERSON) continue; if ((*it).type & DIR_TYPE_PERSON) continue;
std::string path, name; //std::string path, name;
rsFiles->ConvertSharedFilePath((*it).path, path); //rsFiles->ConvertSharedFilePath((*it).path, path);
QDir dir(QString::fromUtf8(path.c_str())); QDir dir(QString::fromUtf8((*it).path.c_str()));
QString dest; QString dest;
if ((*it).type & DIR_TYPE_FILE) { if ((*it).type & DIR_TYPE_FILE) {
dest = dir.absoluteFilePath(QString::fromUtf8(it->name.c_str())); dest = dir.absoluteFilePath(QString::fromUtf8(it->name.c_str()));