Fixed umlauts (utf8) in DirectoriesPage in Windows.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3542 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-09-27 21:42:26 +00:00
parent 627b0ca54a
commit 374d1820b4

View File

@ -127,14 +127,14 @@ void DirectoriesPage::load()
for(it = dirs.begin(); it != dirs.end(); it++)
{
/* (0) Dir Name */
listWidget->addItem(QString::fromStdString((*it).filename));
listWidget->addItem(QString::fromUtf8((*it).filename.c_str()));
}
/* set saved index */
listWidget->setCurrentIndex(rootIndex);
ui.incomingDir->setText(QString::fromStdString(rsFiles->getDownloadDirectory()));
ui.partialsDir->setText(QString::fromStdString(rsFiles->getPartialsDirectory()));
ui.incomingDir->setText(QString::fromUtf8(rsFiles->getDownloadDirectory().c_str()));
ui.partialsDir->setText(QString::fromUtf8(rsFiles->getPartialsDirectory().c_str()));
listWidget->update(); /* update display */
}