fixed utf8 bug in ShareManager

This commit is contained in:
csoler 2017-03-04 16:39:39 +01:00
parent 36009052dc
commit 0024ddfe1e

View File

@ -255,7 +255,7 @@ void ShareManager::load()
listWidget->item(row,COLUMN_GROUPS)->setTextColor( (mDirInfos[row].shareflags & DIR_FLAGS_BROWSABLE)? (Qt::black):(Qt::lightGray)) ;
listWidget->item(row,COLUMN_GROUPS)->setFont(font);
if(QDir(QString::fromStdString(mDirInfos[row].filename)).exists())
if(QDir(QString::fromUtf8(mDirInfos[row].filename.c_str())).exists())
{
listWidget->item(row,COLUMN_PATH)->setTextColor(Qt::black);
listWidget->item(row,COLUMN_PATH)->setToolTip(tr("Double click to change shared directory path")) ;