Set to display a placeholder text when status message is empty.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7758 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2014-12-15 15:53:10 +00:00
parent 78c71ab011
commit 3157bdff91
2 changed files with 18 additions and 12 deletions

View file

@ -805,7 +805,16 @@ void FriendsDialog::getAvatar()
/** Loads own personal status */
void FriendsDialog::loadmypersonalstatus()
{
ui.mypersonalstatusLabel->setText(QString::fromUtf8(rsMsgs->getCustomStateString().c_str()));
QString statustring = QString::fromUtf8(rsMsgs->getCustomStateString().c_str());
if (statustring.isEmpty())
{
ui.mypersonalstatusLabel->setText(tr("Set here your Status message"));
}
else
{
ui.mypersonalstatusLabel->setText(statustring);
}
}
void FriendsDialog::statusmessage()