Load own status from chat.cfg

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1699 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-09-30 13:29:45 +00:00
parent ab5c321fc3
commit 036cb7cb57
2 changed files with 9 additions and 8 deletions

View File

@ -1315,9 +1315,9 @@ void PeersDialog::on_actionCreate_new_Profile_activated()
/** Loads own personal status */
void PeersDialog::loadmypersonalstatus()
{
_settings->beginGroup("Profile");
ui.mypersonalstatuslabel->setText(_settings->value("StatusMessage","").toString());
_settings->endGroup();
//_settings->beginGroup("Profile");
//ui.mypersonalstatuslabel->setText(_settings->value("StatusMessage","").toString());
//_settings->endGroup();
ui.mypersonalstatuslabel->setText(QString::fromStdString(rsMsgs->getCustomStateString()));
}

View File

@ -73,11 +73,12 @@ void StatusMessage::save()
/** Loads the settings for this page */
void StatusMessage::load()
{
_settings->beginGroup("Profile");
//_settings->beginGroup("Profile");
//ui.txt_StatusMessage->setText(_settings->value("StatusMessage","").toString());
//_settings->endGroup();
ui.txt_StatusMessage->setText(_settings->value("StatusMessage","").toString());
ui.txt_StatusMessage->setText(QString::fromStdString(rsMsgs->getCustomStateString())) ;
_settings->endGroup();
}