From 374d1820b47006e668547088f0c5a71c74619d0e Mon Sep 17 00:00:00 2001 From: thunder2 Date: Mon, 27 Sep 2010 21:42:26 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/settings/DirectoriesPage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/settings/DirectoriesPage.cpp b/retroshare-gui/src/gui/settings/DirectoriesPage.cpp index 9ca38218c..996dfd1bc 100755 --- a/retroshare-gui/src/gui/settings/DirectoriesPage.cpp +++ b/retroshare-gui/src/gui/settings/DirectoriesPage.cpp @@ -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 */ }