From b41de7d727932f4d578392491f9b25ca1b6306df Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 21 Mar 2010 12:55:16 +0000 Subject: [PATCH] utf8 fix git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2581 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/ShareManager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/ShareManager.cpp b/retroshare-gui/src/gui/ShareManager.cpp index a0794942f..d14e29a16 100644 --- a/retroshare-gui/src/gui/ShareManager.cpp +++ b/retroshare-gui/src/gui/ShareManager.cpp @@ -104,7 +104,7 @@ void ShareManager::load() for(it = dirs.begin(); it != dirs.end(); it++,++row) { listWidget->insertRow(row) ; - listWidget->setItem(row,0,new QTableWidgetItem(QString::fromStdString((*it).filename))); + listWidget->setItem(row,0,new QTableWidgetItem(QString::fromUtf8((*it).filename.c_str()))); #ifdef USE_COMBOBOX QComboBox *cb = new QComboBox ; cb->addItem(QString("Network Wide")) ; @@ -173,8 +173,7 @@ void ShareManager::addShareDirectory() */ - QString qdir = QFileDialog::getExistingDirectory(this, tr("Select A Folder To Share"), "", - QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); + QString qdir = QFileDialog::getExistingDirectory(this, tr("Select A Folder To Share"), "", QFileDialog::DontUseNativeDialog | QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); /* add it to the server */ std::string dir = qdir.toStdString();