mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 22:55:04 -04:00
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:
parent
78c71ab011
commit
3157bdff91
2 changed files with 18 additions and 12 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue