Added to change the text for the Play Button, when file is not a media file.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6978 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2014-01-01 16:58:52 +00:00
parent abd6b46ca0
commit 0e134d0a92

View File

@ -213,8 +213,16 @@ void ChanMsgItem::updateItemStatic()
/* check if the file is a media file */
if (!misc::isPreviewable(QFileInfo(QString::fromUtf8(it->fname.c_str())).suffix()))
fi->mediatype();
{
fi->mediatype();
playButton->setText(tr("Open"));
playButton->setToolTip(tr("Open File"));
}
else
{
playButton->setText(tr("Play"));
playButton->setToolTip(tr("Play Media"));
}
QLayout *layout = expandFrame->layout();
layout->addWidget(fi);