Unicode support for status message.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3867 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-11-24 19:25:53 +00:00
parent 6c9e429215
commit e7813892bc
4 changed files with 11 additions and 12 deletions

View file

@ -55,16 +55,15 @@ StatusMessage::~StatusMessage()
/** Saves the changes on this page */
void StatusMessage::save()
{
rsMsgs->setCustomStateString(ui.txt_StatusMessage->text().toStdString());
rsMsgs->setCustomStateString(ui.txt_StatusMessage->text().toUtf8().constData());
close();
}
/** Loads the settings for this page */
void StatusMessage::load()
{
ui.txt_StatusMessage->setText(QString::fromStdString(rsMsgs->getCustomStateString()));
ui.txt_StatusMessage->setText(QString::fromUtf8(rsMsgs->getCustomStateString().c_str()));
}